Skip to content

Commit

Permalink
trusting period as string
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya committed Jul 24, 2023
1 parent ff66157 commit 867115d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relayer/processor/message_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (mp *messageProcessor) shouldUpdateClientNow(ctx context.Context, src, dst

if mp.metrics != nil {
timeToExpiration := dst.clientState.TrustingPeriod - time.Since(consensusHeightTime)
mp.metrics.SetClientExpiration(src.info.PathName, dst.info.ChainID, dst.clientState.ClientID, fmt.Sprint(dst.clientState.TrustingPeriod.Seconds()), timeToExpiration)
mp.metrics.SetClientExpiration(src.info.PathName, dst.info.ChainID, dst.clientState.ClientID, fmt.Sprint(dst.clientState.TrustingPeriod.String()), timeToExpiration)
}

if shouldUpdateClientNow {
Expand Down

0 comments on commit 867115d

Please sign in to comment.