Skip to content

Commit

Permalink
fix maxLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobeyw committed Aug 16, 2024
1 parent c3747c9 commit b33e47c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions neo3fura_http/biz/job/job.GetHoldersByContractHash.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package job

import (
"encoding/json"

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

Expand Down Expand Up @@ -42,6 +43,7 @@ func (me T) GetHoldersByContractHash() error {
Sort: bson.M{"balance": -1},
Filter: bson.M{"asset": item["hash"], "balance": bson.M{"$gt": 0}},
Query: []string{},
Limit: int64(1000),
}, ret)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion neo3fura_http/lib/type/consts/src.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ const (
NEO = "0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5"
GAS = "0xd2a4cff31913016155e38e474a2c06d08be276cf"
DefaultLimit = 20
MaxLimit = 500
MaxLimit = 1000
)

0 comments on commit b33e47c

Please sign in to comment.