adds defer close for node conn in audit verifier (#1634)
This commit is contained in:
parent
6028d8c3de
commit
e2a43c3fb6
@ -191,6 +191,12 @@ func (d *defaultDownloader) getShare(ctx context.Context, limit *pb.AddressedOrd
|
|||||||
conn,
|
conn,
|
||||||
piecestore.DefaultConfig,
|
piecestore.DefaultConfig,
|
||||||
)
|
)
|
||||||
|
defer func() {
|
||||||
|
err := ps.Close()
|
||||||
|
if err != nil {
|
||||||
|
d.log.Error("audit verifier failed to close conn to node: %+v", zap.Error(err))
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
offset := int64(shareSize) * stripeIndex
|
offset := int64(shareSize) * stripeIndex
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user