File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ func (cg *BasicConnectionGater) loadRules(ctx context.Context) error {
7272 for r := range res .Next () {
7373 if r .Error != nil {
7474 log .Errorf ("query result error: %s" , r .Error )
75- return err
75+ return r . Error
7676 }
7777
7878 p := peer .ID (r .Entry .Value )
@@ -89,7 +89,7 @@ func (cg *BasicConnectionGater) loadRules(ctx context.Context) error {
8989 for r := range res .Next () {
9090 if r .Error != nil {
9191 log .Errorf ("query result error: %s" , r .Error )
92- return err
92+ return r . Error
9393 }
9494
9595 ip := net .IP (r .Entry .Value )
@@ -106,7 +106,7 @@ func (cg *BasicConnectionGater) loadRules(ctx context.Context) error {
106106 for r := range res .Next () {
107107 if r .Error != nil {
108108 log .Errorf ("query result error: %s" , r .Error )
109- return err
109+ return r . Error
110110 }
111111
112112 ipnetStr := string (r .Entry .Value )
You can’t perform that action at this time.
0 commit comments