From 809fb9197d06ca966681cecc787899aac5499a41 Mon Sep 17 00:00:00 2001 From: Tobeyw Date: Mon, 17 Jun 2024 14:55:42 +0800 Subject: [PATCH] add activeAddress limit --- neo3fura_http/biz/job/job.GetActiveAddresses.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neo3fura_http/biz/job/job.GetActiveAddresses.go b/neo3fura_http/biz/job/job.GetActiveAddresses.go index bbf6a24..4d98b58 100644 --- a/neo3fura_http/biz/job/job.GetActiveAddresses.go +++ b/neo3fura_http/biz/job/job.GetActiveAddresses.go @@ -4,6 +4,8 @@ import ( "encoding/json" "go.mongodb.org/mongo-driver/bson" + + "neo3fura_http/lib/type/consts" ) func (me T) GetActiveAddresses() error { @@ -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