Mercurial > gemma
diff pkg/imports/bn.go @ 2253:cfc523c70e90
Uploaded imports: Small code clean-ups.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 13 Feb 2019 17:09:11 +0100 |
parents | cce158db02b0 |
children | 452bc714bfd9 |
line wrap: on
line diff
--- a/pkg/imports/bn.go Wed Feb 13 16:59:38 2019 +0100 +++ b/pkg/imports/bn.go Wed Feb 13 17:09:11 2019 +0100 @@ -144,7 +144,7 @@ feedback Feedback, ) (interface{}, error) { - fetch := func(feedback Feedback) ([]*ifbn.BottleNeckType, error) { + fetch := func() ([]*ifbn.BottleNeckType, error) { client := ifbn.NewIBottleneckService(bn.URL, bn.Insecure, nil) req := &ifbn.Export_bn_by_isrs{} @@ -166,14 +166,14 @@ func storeBottlenecks( ctx context.Context, - fetch func(Feedback) ([]*ifbn.BottleNeckType, error), + fetch func() ([]*ifbn.BottleNeckType, error), importID int64, conn *sql.Conn, feedback Feedback, ) (interface{}, error) { start := time.Now() - bns, err := fetch(feedback) + bns, err := fetch() if err != nil { return nil, err }