Skip to content

Commit

Permalink
providers: make sure to close provider query, even on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Apr 13, 2019
1 parent 02a2faf commit 932162e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ func loadProvSet(dstore ds.Datastore, k cid.Cid) (*providerSet, error) {
if err != nil {
return nil, err
}
defer res.Close()

now := time.Now()
out := newProviderSet()
Expand Down

0 comments on commit 932162e

Please sign in to comment.