Add client interaction and Fable support
This commit is contained in:
@@ -32,7 +32,11 @@ type InMemoryPersistentState<'a> () =
|
||||
member this.CurrentTerm = currentTerm * 1<Term>
|
||||
|
||||
member this.IncrementTerm () =
|
||||
#if FABLE_COMPILER
|
||||
currentTerm <- currentTerm + 1
|
||||
#else
|
||||
Interlocked.Increment ¤tTerm |> ignore
|
||||
#endif
|
||||
|
||||
member this.VotedFor = votedFor
|
||||
member this.Vote id = votedFor <- Some id
|
||||
|
Reference in New Issue
Block a user