Skip to content

Commit

Permalink
chore: transfer 增加新时间处理格式 (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiandongx authored Dec 4, 2023
1 parent 54dcc15 commit d7633ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/transfer/consul/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func initConfiguration(c define.Configuration) {
c.SetDefault(ConfKeyEventBufferSize, 32)
c.SetDefault(ConfKeyDispatchRetries, 3)
c.SetDefault(ConfKeyShadowCopyBufferSize, 0)
c.SetDefault(ConfKeyDispatchDelay, "15")
c.SetDefault(ConfKeyDispatchDelay, "3s")
c.SetDefault(ConfKeyDispatchInterval, "10m")
c.SetDefault(ConfKeyAuthBasicUser, cfg.HttpAuth.Username)
c.SetDefault(ConfKeyAuthBasicPassword, cfg.HttpAuth.Password)
Expand Down
1 change: 1 addition & 0 deletions pkg/transfer/define/time_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ func init() {
RegisterTimeLayout("rfc3339_nano", time.RFC3339Nano)
RegisterTimeLayout("date", "2006-01-02")
RegisterTimeLayout("datetime", "2006-01-02 15:04:05")
RegisterTimeLayout("ISO8601", "2006-01-02T15:04:05.000-0700")
}
2 changes: 1 addition & 1 deletion pkg/transfer/esb/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func initConfiguration(c define.Configuration) {
c.SetDefault(ConfESBUserNameKey, "admin")
c.SetDefault(ConfESBAddress, "http://paas.service.consul")
c.SetDefault(ConfESBBkSupplierAccount, "0")
c.SetDefault(ConfMaxWorker, 10)
c.SetDefault(ConfMaxWorker, 2)
c.SetDefault(ConfFilterCMDBV3Biz, false)
}

Expand Down

0 comments on commit d7633ca

Please sign in to comment.