Skip to content

Commit

Permalink
Merge pull request #256 from Tobeyw/dev-mindy
Browse files Browse the repository at this point in the history
add activeAddress limit
  • Loading branch information
Tobeyw committed Jun 17, 2024
2 parents 1e1ccca + 809fb91 commit 3da02b0
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 3da02b0

Please sign in to comment.