@cryptotaxi247 / kubo / commits / 0b8f0d3a8

Use interface{} for duplicated return type

License: MIT Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>

Michael Avila committed May 6, 2019 at 11:21 UTC 0b8f0d3a845e0da0ee71845145ac50ecc0d31428
1 file changed +1 -1
core/node/provider.go
+1 -1
@@ -30,7 +30,7 @@ func SimpleProvider(mctx helpers.MetricsCtx, lc fx.Lifecycle, queue *q.Queue, rt
30 }
31
32 // SimpleReprovider creates new reprovider
33 -func SimpleReprovider(reproviderInterval time.Duration) func(helpers.MetricsCtx, fx.Lifecycle, routing.IpfsRouting, simple.KeyChanFunc) (provider.Reprovider, error) {
33 +func SimpleReprovider(reproviderInterval time.Duration) interface{} {
34 return func(mctx helpers.MetricsCtx, lc fx.Lifecycle, rt routing.IpfsRouting, keyProvider simple.KeyChanFunc) (provider.Reprovider, error) {
35 return simple.NewReprovider(helpers.LifecycleCtx(mctx, lc), reproviderInterval, rt, keyProvider), nil
36 }