mirror of
https://github.com/status-im/nim-raft.git
synced 2025-02-04 17:24:49 +00:00
Change timer create duration variable name to timerInterval
This commit is contained in:
parent
9cae024e30
commit
361c67803d
@ -70,9 +70,9 @@ proc RaftNodeSmApply[LogEntryDataType, SmStateType](stateMachine: RaftNodeStateM
|
||||
RaftSmApply(stateMachine, logEntry)
|
||||
|
||||
# Timer manipulation
|
||||
proc RaftTimerCreate*[TimerDurationType](d: TimerDurationType, repeat: bool, timer_callback: RaftTimerCallback): TimerId = # I guess Duration should be monotonic
|
||||
proc RaftTimerCreate*[TimerDurationType](timerInterval: TimerDurationType, repeat: bool, timer_callback: RaftTimerCallback): TimerId = # I guess Duration should be monotonic
|
||||
mixin RaftTimerCreateCustomImpl
|
||||
RaftTimerCreateCustomImpl(d, repeat, timer_callback)
|
||||
RaftTimerCreateCustomImpl(timerInterval, repeat, timer_callback)
|
||||
|
||||
template RaftTimerCancel*(TimerId) =
|
||||
mixin RaftTimerCancelCustomImpl
|
||||
|
Loading…
x
Reference in New Issue
Block a user