Skip to content

Commit

Permalink
mysql: bug fixes (cadence-workflow#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
venkat1109 authored Oct 19, 2018
1 parent 9e9969b commit 81c0089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/persistence/persistence-factory/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func buildRatelimiters(cfg *config.Persistence) map[string]common.TokenBucket {
qps = ds.SQL.MaxQPS
}
if qps > 0 {
result[dsName] = common.NewTokenBucket(ds.Cassandra.MaxQPS, common.NewRealTimeSource())
result[dsName] = common.NewTokenBucket(qps, common.NewRealTimeSource())
}
}
return result
Expand Down
2 changes: 1 addition & 1 deletion schema/mysql/v57/cadence/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ task_list VARCHAR(255) NOT NULL,
started_identity VARCHAR(255) NOT NULL,
has_retry_policy BOOLEAN NOT NULL,
init_interval INT NOT NULL,
backoff_coefficient DOUBLE NOT NULL,
backoff_coefficient DOUBLE,
max_interval INT NOT NULL,
expiration_time TIMESTAMP(3) NOT NULL DEFAULT '1970-01-01 00:00:01.000',
max_attempts INT NOT NULL,
Expand Down

0 comments on commit 81c0089

Please sign in to comment.