Fix coding style
This commit is contained in:
parent
85e4d19e59
commit
9cae024e30
|
@ -70,15 +70,15 @@ proc RaftNodeSmApply[LogEntryDataType, SmStateType](stateMachine: RaftNodeStateM
|
||||||
RaftSmApply(stateMachine, logEntry)
|
RaftSmApply(stateMachine, logEntry)
|
||||||
|
|
||||||
# Timer manipulation
|
# Timer manipulation
|
||||||
proc RaftCreateTimer*[TimerDurationType](d: TimerDurationType, repeat: bool, timer_callback: RaftTimerCallback): TimerId = # I guess Duration should be monotonic
|
proc RaftTimerCreate*[TimerDurationType](d: TimerDurationType, repeat: bool, timer_callback: RaftTimerCallback): TimerId = # I guess Duration should be monotonic
|
||||||
mixin RaftCreateTimerCustomImpl
|
mixin RaftTimerCreateCustomImpl
|
||||||
RaftCreateTimerCustomImpl(d, repeat, timer_callback)
|
RaftTimerCreateCustomImpl(d, repeat, timer_callback)
|
||||||
|
|
||||||
template RaftCancelTimer*(TimerId) =
|
template RaftTimerCancel*(TimerId) =
|
||||||
mixin RaftCancelTimerCustomImpl
|
mixin RaftTimerCancelCustomImpl
|
||||||
RaftCancelTimerCustomImpl(TimerId)
|
RaftTimerCancelCustomImpl(TimerId)
|
||||||
|
|
||||||
template RaftIsExpiredTimer*(TimerId): bool =
|
template RaftTimerIsExpired*(TimerId): bool =
|
||||||
mixin RaftIsExpiredTimerImpl
|
mixin RaftTimerIsExpiredImpl
|
||||||
RaftIsExpiredTimerImpl(TimerId)
|
RaftTimerIsExpiredImpl(TimerId)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue