Skip to content

Commit

Permalink
review followup
Browse files Browse the repository at this point in the history
  • Loading branch information
buck54321 committed Feb 20, 2025
1 parent d8cc89f commit 6b00b74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ go test -c -o /dev/null -tags ltclive ./server/asset/ltc
go test -c -o /dev/null -tags bchlive ./server/asset/bch
go test -c -o /dev/null -tags dogelive ./server/asset/doge
go test -c -o /dev/null -tags zeclive ./server/asset/zec
go test -c -o /dev/null -tags zcllive ./server/asset/zcl
go test -c -o /dev/null -tags firolive ./server/asset/firo
go test -c -o /dev/null -tags harness ./server/asset/eth
go test -c -o /dev/null -tags pgonline ./server/db/driver/pg
Expand Down
5 changes: 4 additions & 1 deletion tatanka/client/conn/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func (c *MeshConn) addTatankaNode(ctx context.Context, creds *TatankaCredentials
}

if err := cm.Connect(ctx); err != nil {
c.log.Errorf("error connecting to tatanka node %s at %s: %v. will keep trying to connect", err)
return fmt.Errorf("error connecting to tatanka node %s at %s: %w. will keep trying to connect", peerID, uri, err)
}

return nil
Expand Down Expand Up @@ -407,6 +407,9 @@ func (c *MeshConn) tatankas(mode TatankaSelectionMode) (tts []*tatanka, _ error)
for peerID, tt := range c.tatankaNodes {
if tt.cm.On() && peerID != skipID {
tts = append(tts, tt)
if mode == SelectionModeAny {
return tts, nil
}
}
}
if len(tts) == 0 {
Expand Down

0 comments on commit 6b00b74

Please sign in to comment.