Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benleb committed Jun 16, 2023
1 parent 722ba14 commit d688d68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions internal/opensea/opensea.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ func GetCollectionsFor(walletAddress common.Address, userCollections *collection

if err := json.NewDecoder(bytes.NewReader(responseBody)).Decode(&collectionResponse); err != nil {
gbl.Log.Errorf("⌛️ error while decoding wallet collections for %s: %s", walletAddress.Hex(), err)
gbl.Log.Errorf("responseBody: %+v", string(responseBody))
gbl.Log.Error("")
}

for _, collection := range collectionResponse {
Expand Down
3 changes: 1 addition & 2 deletions internal/seawa/seawatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ func NewSeaWatcher(apiToken string, gb *gloomberg.Gloomberg) *SeaWatcher {
client.phoenixSocket.ReconnectAfterFunc = func(attempt int) time.Duration {
waitTime := time.Second * time.Duration(math.Pow(2.0, float64(attempt)))

client.Prf("❕ reconnecting after %v..", waitTime)
client.Prf("🌂 opensea stream socket retry | time.Second * time.Duration(math.Pow(2.0, float64(attempt))) = %v..", waitTime)
client.Prf("❕ reconnecting (attempt %d) after %d..", attempt, waitTime)

return waitTime
}
Expand Down

0 comments on commit d688d68

Please sign in to comment.