Change config parameter name

This commit is contained in:
mcrakhman 2023-04-20 12:52:25 +02:00
parent e896a88d29
commit 5d13fb6a6e
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ type ConfigGetter interface {
} }
type Config struct { type Config struct {
GCTTL int `yaml:"gcTTL"` GCTTL int `yaml:"gcTTL"`
SyncPeriod int `yaml:"syncPeriod"` SyncPeriod int `yaml:"syncPeriod"`
TreeInMemoryData bool `yaml:"treeInMemoryData"` 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)) syncStatus = syncstatus.NewSyncStatusProvider(st.Id(), syncstatus.DefaultDeps(lastConfiguration, st))
} }
var builder objecttree.BuildObjectTreeFunc var builder objecttree.BuildObjectTreeFunc
if s.config.TreeInMemoryData { if s.config.TreeNoInMemoryData {
builder = objecttree.BuildEmptyDataObjectTree builder = objecttree.BuildEmptyDataObjectTree
} else { } else {
builder = objecttree.BuildObjectTree builder = objecttree.BuildObjectTree