Skip to content

Commit

Permalink
update logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-soon committed Dec 10, 2024
1 parent 640b204 commit 5354f44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (cs *State) GetStateWithTimeout(timeout time.Duration) (sm.State, error) {
return res, nil

case <-time.After(timeout):
return sm.State{}, fmt.Errorf("timeout after %v", timeout)
return sm.State{}, fmt.Errorf("GetStateWithTimeout: timeout after %v", timeout)
}
}

Expand Down
4 changes: 2 additions & 2 deletions oracle/service/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ func Run(oracleInfo *types.OracleInfo, consensusState *cs.State, chainId string)

// drop old votes when channel hits half cap
if len(oracleInfo.SignVotesChan) >= cap(oracleInfo.SignVotesChan)/2 {
log.Warnf("dropping old vote from signVotesChan as it is at half capacity")
<-oracleInfo.SignVotesChan
voteToDrop := <-oracleInfo.SignVotesChan
log.Warnf("dropped vote as oracle sign votes channel cap is half full, vote: %+v at %v", voteToDrop, time.Now().Unix())
}

oracleInfo.SignVotesChan <- res.Vote
Expand Down

0 comments on commit 5354f44

Please sign in to comment.