Skip to content

Commit

Permalink
fix a_sync->async, add async in tests yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
suetin committed Mar 17, 2024
1 parent 55dd18b commit 4dfafc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ type Config struct {
ReplicationChannel string `config:"replication_channel" yaml:"replication_channel"`
ExternalReplicationChannel string `config:"external_replication_channel" yaml:"external_replication_channel"`
ExternalReplicationType util.ExternalReplicationType `config:"external_replication_type" yaml:"external_replication_type"`
ASync bool `config:"a_sync" yaml:"a_sync"`
ASyncAllowedLag int64 `config:"a_sync_allowed_lag" yaml:"a_sync_allowed_lag"`
ASync bool `config:"async" yaml:"async"`

Check failure on line 91 in internal/config/config.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
ASyncAllowedLag int64 `config:"async_allowed_lag" yaml:"async_allowed_lag"`
}

// DefaultConfig returns default configuration for MySync
Expand Down
2 changes: 2 additions & 0 deletions tests/images/mysql/mysync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ failover_cooldown: ${MYSYNC_FAILOVER_COOLDOWN:-60m}
failover_delay: ${MYSYNC_FAILOVER_DELAY:-0s}
inactivation_delay: ${MYSYNC_INACTIVATION_DELAY:-5s}
semi_sync: ${MYSYNC_SEMISYNC:-true}
async: ${MYSYNC_ASYNC:-false}
async_allowed_lag: $(ASYNC_ALLOWED_LAG:-0s}
resetupfile: /tmp/mysync.resetup
resetup_crashed_hosts: ${MYSYNC_RESETUP_CRASHED_HOSTS:-false}
zookeeper:
Expand Down

0 comments on commit 4dfafc3

Please sign in to comment.