1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Change config parameter name

This commit is contained in:
mcrakhman 2023-04-20 12:52:25 +02:00 committed by Mikhail Iudin
parent 321f843e8e
commit d60a07f58c
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0
2 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@ type ConfigGetter interface {
}
type Config struct {
GCTTL int `yaml:"gcTTL"`
SyncPeriod int `yaml:"syncPeriod"`
TreeInMemoryData bool `yaml:"treeInMemoryData"`
GCTTL int `yaml:"gcTTL"`
SyncPeriod int `yaml:"syncPeriod"`
TreeNoInMemoryData bool `yaml:"treeNoInMemoryData"`
}

View file

@ -154,7 +154,7 @@ func (s *spaceService) NewSpace(ctx context.Context, id string) (Space, error) {
syncStatus = syncstatus.NewSyncStatusProvider(st.Id(), syncstatus.DefaultDeps(lastConfiguration, st))
}
var builder objecttree.BuildObjectTreeFunc
if s.config.TreeInMemoryData {
if s.config.TreeNoInMemoryData {
builder = objecttree.BuildEmptyDataObjectTree
} else {
builder = objecttree.BuildObjectTree