Add http to import bench

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-09-18 13:55:37 +02:00
parent 782717948a
commit 3858309368
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -91,6 +91,10 @@ var importBenchCmd = &cli.Command{
}
defer cfi.Close() //nolint:errcheck // read only file
go func() {
http.ListenAndServe("localhost:6060", nil) //nolint:errcheck
}()
var tdir string
if rdir := cctx.String("repodir"); rdir != "" {
tdir = rdir