mirror of
https://github.com/status-im/nim-raft.git
synced 2025-02-10 12:06:30 +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)
|
RaftSmApply(stateMachine, logEntry)
|
||||||
|
|
||||||
# Timer manipulation
|
# 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
|
mixin RaftTimerCreateCustomImpl
|
||||||
RaftTimerCreateCustomImpl(d, repeat, timer_callback)
|
RaftTimerCreateCustomImpl(timerInterval, repeat, timer_callback)
|
||||||
|
|
||||||
template RaftTimerCancel*(TimerId) =
|
template RaftTimerCancel*(TimerId) =
|
||||||
mixin RaftTimerCancelCustomImpl
|
mixin RaftTimerCancelCustomImpl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user