mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
Remove success logs
This commit is contained in:
parent
0cac23037c
commit
a3f2e5f725
1 changed files with 0 additions and 5 deletions
|
@ -235,8 +235,6 @@ func (s *streamPool) Send(ctx context.Context, msg drpc.Message, peerGetter Peer
|
||||||
for _, p := range peers {
|
for _, p := range peers {
|
||||||
if e := s.sendOne(ctx, p, msg); e != nil {
|
if e := s.sendOne(ctx, p, msg); e != nil {
|
||||||
log.InfoCtx(ctx, "send peer error", zap.Error(e), zap.String("peerId", p.Id()))
|
log.InfoCtx(ctx, "send peer error", zap.Error(e), zap.String("peerId", p.Id()))
|
||||||
} else {
|
|
||||||
log.DebugCtx(ctx, "send success", zap.String("peerId", p.Id()))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -261,7 +259,6 @@ func (s *streamPool) SendById(ctx context.Context, msg drpc.Message, peerIds ...
|
||||||
if e := st.write(msg); e != nil {
|
if e := st.write(msg); e != nil {
|
||||||
st.l.Debug("sendById write error", zap.Error(e))
|
st.l.Debug("sendById write error", zap.Error(e))
|
||||||
} else {
|
} else {
|
||||||
st.l.DebugCtx(ctx, "sendById success")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -284,8 +281,6 @@ func (s *streamPool) sendOne(ctx context.Context, p peer.Peer, msg drpc.Message)
|
||||||
// continue with next stream
|
// continue with next stream
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
st.l.DebugCtx(ctx, "sendOne success")
|
|
||||||
// stop sending on success
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue