-
Notifications
You must be signed in to change notification settings - Fork 131
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
pump/: Add syn-log option #509
Conversation
@GregoryIan PTAL |
/run-all-tests |
LGTM |
/run-unit-test |
@@ -64,7 +64,7 @@ type Config struct { | |||
configFile string | |||
printVersion bool | |||
tls *tls.Config | |||
Storage *storage.Config `toml:"storage" json:"storage"` | |||
Storage storage.Config `toml:"storage" json:"storage"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we get when this is changed from pointer to value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just no need to check if Storage
is nil (when no Storage**
is config in file)
} | ||
|
||
// GetSyncLog return sync-log config option | ||
func (c *Config) GetSyncLog() bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also handle the nil
value in options.WithSync
so that:
- the other callers also don't have to worry about
nil
s - we can use
config.SyncLog
like when we are accessing the other config values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WithSync accept bool
not *bool
, and if accept *bool
if pass nil seems meaningless.
LGTM |
What problem does this PR solve?
add syn-log config option see pump.toml change
What is changed and how it works?
add syn-log config
change template compaction-total-size-multiplier from
8
->8.0
which should be floatCheck List
Tests
check config work by log
Code changes
Side effects
Related changes