Fix typo and compile error

This commit is contained in:
Raycho Mukelov 2023-08-06 06:27:34 +03:00
parent ba23c8bb62
commit 1859b20ed5
2 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@
import types
import protocol
import stew
# import stew
export types, protocol
@ -53,7 +53,7 @@ proc RAFTNodeRequest*(node: RAFTNode, req: RAFTNodeClientRequest): RAFTNodeClien
proc RAFTNodeLogLenGet*(node: RAFTNode): RAFTLogIndex =
discard
proc RAFTNodeLogentryGet*(node: RAFTLogIndex): Result[RAFTNodeLogEntry, string] =
proc RAFTNodeLogEntryGet*(node: RAFTLogIndex): Result[RAFTNodeLogEntry, string] =
discard
proc RAFTNodeStateMachineStateGet*(node: RAFTNode): RAFTNodeStateMachineState =

View File

@ -27,7 +27,7 @@ type
RAFTLogIndex* = uint64 # RAFT Node Log Index Type
# 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
# providing at minimum operations for initialization, querying the current state
# and RAFTNodeLogEntry application