Skip to content
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
6 changes: 3 additions & 3 deletions p2p/net/conngater/conngater.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (cg *BasicConnectionGater) loadRules(ctx context.Context) error {
for r := range res.Next() {
if r.Error != nil {
log.Errorf("query result error: %s", r.Error)
return err
return r.Error
}

p := peer.ID(r.Entry.Value)
Expand All @@ -89,7 +89,7 @@ func (cg *BasicConnectionGater) loadRules(ctx context.Context) error {
for r := range res.Next() {
if r.Error != nil {
log.Errorf("query result error: %s", r.Error)
return err
return r.Error
}

ip := net.IP(r.Entry.Value)
Expand All @@ -106,7 +106,7 @@ func (cg *BasicConnectionGater) loadRules(ctx context.Context) error {
for r := range res.Next() {
if r.Error != nil {
log.Errorf("query result error: %s", r.Error)
return err
return r.Error
}

ipnetStr := string(r.Entry.Value)
Expand Down
Loading