removes check for mock overlay in data repair checker config (#794)

This commit is contained in:
Jennifer Li Johnson 2018-12-07 00:42:16 -05:00 committed by GitHub
parent b6c936340b
commit dac79fd762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,8 +12,6 @@ import (
"storj.io/storj/pkg/datarepair/irreparabledb"
"storj.io/storj/pkg/datarepair/queue"
"storj.io/storj/pkg/overlay"
mock "storj.io/storj/pkg/overlay/mocks"
"storj.io/storj/pkg/pb"
"storj.io/storj/pkg/pointerdb"
"storj.io/storj/pkg/provider"
"storj.io/storj/pkg/statdb"
@ -43,14 +41,7 @@ func (c Config) initialize(ctx context.Context) (Checker, error) {
if err != nil {
return nil, err
}
var o pb.OverlayServer
x := overlay.LoadServerFromContext(ctx)
if x == nil {
o = mock.LoadServerFromContext(ctx)
} else {
o = x
}
o := overlay.LoadServerFromContext(ctx)
redisQ, err := redis.NewQueueFrom(c.QueueAddress)
if err != nil {
return nil, Error.Wrap(err)