Skip to content

Commit

Permalink
Merge pull request #259 from Tobeyw/dev-mindy
Browse files Browse the repository at this point in the history
fix maxLimit
  • Loading branch information
Tobeyw authored Aug 16, 2024
2 parents 5d70365 + b33e47c commit 04d06eb
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 04d06eb

Please sign in to comment.