diff --git a/etc/any-sync-filenode.yml b/etc/any-sync-filenode.yml index babba9c..3b08ad0 100755 --- a/etc/any-sync-filenode.yml +++ b/etc/any-sync-filenode.yml @@ -63,3 +63,4 @@ network: creationTime: 2023-04-13T20:29:23.453806629+02:00 networkStorePath: . networkUpdateIntervalSec: 600 +defaultLimit: 1073741824 diff --git a/index/index.go b/index/index.go index ec4c1dc..2d13ee1 100644 --- a/index/index.go +++ b/index/index.go @@ -120,6 +120,9 @@ func (ri *redisIndex) Init(a *app.App) (err error) { // todo: move to config ri.persistTtl = time.Hour ri.defaultLimit = conf.DefaultLimit + if ri.defaultLimit == 0 { + ri.defaultLimit = 1 << 30 + } return }