Skip to content

Commit

Permalink
add activeAddress limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobeyw committed Jun 17, 2024
1 parent 5e7a138 commit 809fb91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neo3fura_http/biz/job/job.GetActiveAddresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"encoding/json"

"go.mongodb.org/mongo-driver/bson"

"neo3fura_http/lib/type/consts"
)

func (me T) GetActiveAddresses() error {
Expand Down Expand Up @@ -35,6 +37,7 @@ func (me T) GetActiveAddresses() error {
Sort: bson.M{},
Filter: bson.M{"blocktime": bson.M{"$gt": r0["blocktime"].(int64) - 3600*24*1000}},
Query: []string{},
Limit: consts.MaxLimit,
}, ret)
if err != nil {
return err
Expand Down

0 comments on commit 809fb91

Please sign in to comment.