mirror of
https://github.com/status-im/nim-raft.git
synced 2025-02-12 04:56:34 +00:00
Fix typo and compile error
This commit is contained in:
parent
ba23c8bb62
commit
1859b20ed5
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
import types
|
import types
|
||||||
import protocol
|
import protocol
|
||||||
import stew
|
# import stew
|
||||||
|
|
||||||
export types, protocol
|
export types, protocol
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ proc RAFTNodeRequest*(node: RAFTNode, req: RAFTNodeClientRequest): RAFTNodeClien
|
|||||||
proc RAFTNodeLogLenGet*(node: RAFTNode): RAFTLogIndex =
|
proc RAFTNodeLogLenGet*(node: RAFTNode): RAFTLogIndex =
|
||||||
discard
|
discard
|
||||||
|
|
||||||
proc RAFTNodeLogentryGet*(node: RAFTLogIndex): Result[RAFTNodeLogEntry, string] =
|
proc RAFTNodeLogEntryGet*(node: RAFTLogIndex): Result[RAFTNodeLogEntry, string] =
|
||||||
discard
|
discard
|
||||||
|
|
||||||
proc RAFTNodeStateMachineStateGet*(node: RAFTNode): RAFTNodeStateMachineState =
|
proc RAFTNodeStateMachineStateGet*(node: RAFTNode): RAFTNodeStateMachineState =
|
||||||
|
@ -27,7 +27,7 @@ type
|
|||||||
RAFTLogIndex* = uint64 # RAFT Node Log Index Type
|
RAFTLogIndex* = uint64 # RAFT Node Log Index Type
|
||||||
|
|
||||||
# RAFT Node State Machine basic definitions
|
# RAFT Node State Machine basic definitions
|
||||||
mixin RAFTNodeStateMachineState* = object # State Machine State
|
RAFTNodeStateMachineState* = object # State Machine State
|
||||||
RAFTNodeStateMachine* = ref object # Some probably opaque State Machine Impelementation to be used by the RAFT Node
|
RAFTNodeStateMachine* = ref object # Some probably opaque State Machine Impelementation to be used by the RAFT Node
|
||||||
# providing at minimum operations for initialization, querying the current state
|
# providing at minimum operations for initialization, querying the current state
|
||||||
# and RAFTNodeLogEntry application
|
# and RAFTNodeLogEntry application
|
||||||
|
Loading…
x
Reference in New Issue
Block a user