Skip to content

Commit

Permalink
id config fix (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
dixitaniket authored Apr 6, 2023
1 parent 4f4259e commit 62c0abd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
2 changes: 2 additions & 0 deletions cw-relayer/cmd/cw-relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ func cwRelayerCmdHandler(cmd *cobra.Command, args []string) error {
resolveDuration,
queryTimeout,
cfg.RequestID,
cfg.MedianRequestID,
cfg.DeviationRequestID,
cfg.MedianDuration,
relayer.AutoRestartConfig{AutoRestart: cfg.Restart.AutoID, Denom: cfg.Restart.Denom, SkipError: cfg.Restart.SkipError},
tick.Tick,
Expand Down
36 changes: 20 additions & 16 deletions cw-relayer/relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ func New(
resolveDuration time.Duration,
queryTimeout time.Duration,
requestID uint64,
medianRequestID uint64,
deviationRequestID uint64,
medianDuration int64,
config AutoRestartConfig,
event chan struct{},
Expand All @@ -95,22 +97,24 @@ func New(
}

return &Relayer{
queryRPCS: queryRPCS,
logger: logger.With().Str("module", "relayer").Logger(),
relayerClient: oc,
contractAddress: contractAddress,
contractAddr: contractAddr,
missedThreshold: missedThreshold,
timeoutHeight: timeoutHeight,
closer: psync.NewCloser(),
codeHash: codeHash,
medianDuration: medianDuration,
resolveDuration: resolveDuration,
requestID: requestID,
maxQueryRetries: maxQueryRetries,
queryTimeout: queryTimeout,
config: config,
event: event,
queryRPCS: queryRPCS,
logger: logger.With().Str("module", "relayer").Logger(),
relayerClient: oc,
contractAddress: contractAddress,
contractAddr: contractAddr,
missedThreshold: missedThreshold,
timeoutHeight: timeoutHeight,
closer: psync.NewCloser(),
codeHash: codeHash,
medianDuration: medianDuration,
resolveDuration: resolveDuration,
requestID: requestID,
medianRequestID: medianRequestID,
deviationRequestID: deviationRequestID,
maxQueryRetries: maxQueryRetries,
queryTimeout: queryTimeout,
config: config,
event: event,
}
}

Expand Down

0 comments on commit 62c0abd

Please sign in to comment.