Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG:Error display during exit #403

Merged
merged 1 commit into from
May 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion p2p/synch/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func RegisterRPC(rpc peers.P2PRPC, basetopic string, base interface{}, handle rp

rpc.Host().SetStreamHandler(protocol.ID(topic), func(stream network.Stream) {
if !rpc.IsRunning() {
log.Error("PeerSync is not running")
log.Debug("PeerSync is not running, ignore the handling", "protocol", topic)
return
}
ctx, cancel := context.WithTimeout(rpc.Context(), RespTimeout)
Expand Down