Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upd RunSeconds,DeletionPeriodDays,SyncPeriod,Path values; added Log,S… #26

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions any-sync-network/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ type CoordinatorNodeConfig struct {
Mongo struct {
Connect string `yaml:"connect"`
Database string `yaml:"database"`
Log string `yaml:"log"`
Spaces string `yaml:"spaces"`
} `yaml:"mongo"`
SpaceStatus struct {
RunSeconds int `yaml:"runSeconds"`
Expand Down Expand Up @@ -747,13 +749,18 @@ func defaultCoordinatorNode() CoordinatorNodeConfig {
Mongo: struct {
Connect string "yaml:\"connect\""
Database string "yaml:\"database\""
}{},
Log string "yaml:\"log\""
Spaces string "yaml:\"spaces\""
}{
Log: "log",
Spaces: "space",
},
SpaceStatus: struct {
RunSeconds int "yaml:\"runSeconds\""
DeletionPeriodDays int "yaml:\"deletionPeriodDays\""
}{
RunSeconds: 20,
DeletionPeriodDays: 1,
RunSeconds: 5,
DeletionPeriodDays: 0,
},
DefaultLimits: struct {
SpaceMembersRead int "yaml:\"spaceMembersRead\""
Expand Down Expand Up @@ -788,12 +795,12 @@ func defaultSyncNode() SyncNodeConfig {
SyncPeriod int "yaml:\"syncPeriod\""
}{
GcTTL: 60,
SyncPeriod: 240,
SyncPeriod: 600,
},
Storage: struct {
Path string "yaml:\"path\""
}{
Path: "db",
Path: "/storage",
},
NodeSync: struct {
SyncOnStart bool "yaml:\"syncOnStart\""
Expand Down
Loading