Fix coding style

This commit is contained in:
Raycho Mukelov 2023-08-10 11:38:09 +03:00
parent 85e4d19e59
commit 9cae024e30
1 changed files with 9 additions and 9 deletions

View File

@ -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)