Commit ae6f3414 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 0c00036c
...@@ -420,7 +420,16 @@ func (stor *Storage) serveLink(ctx context.Context, req *neo.Request, idReq *neo ...@@ -420,7 +420,16 @@ func (stor *Storage) serveLink(ctx context.Context, req *neo.Request, idReq *neo
for { for {
req, err := link.Recv1() req, err := link.Recv1()
if err != nil { if err != nil {
switch errors.Cause(err) {
// XXX closed by main or peer down
// XXX review
case neo.ErrLinkDown, neo.ErrLinkClosed:
log.Info(ctx, err)
// ok
default:
log.Error(ctx, err) log.Error(ctx, err)
}
return err return err
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment