v0.9.4 #1093
drmingdrmer
announced in
Announcements
v0.9.4
#1093
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary:
declare_raft_types
.TryAsRef<ForwardToLeader<..>>
forRaftError
.Detail:
Changed:
Changed: 2b8bc842 Add default value to
declare_raft_types
;Types used in
declare_raft_types
can be omitted, in which case the default type will be used.The default values for each type are:
D
:String
R
:String
NodeId
:u64
Node
:::openraft::BasicNode
Entry
:::openraft::Entry<Self>
SnapshotData
:Cursor<Vec<u8>>
AsyncRuntime
:::openraft::TokioRuntime
Note that The types must be specified in the exact order:
D
,R
,NodeId
,Node
,Entry
,SnapshotData
,AsyncRuntime
.For example, to declare with only
D
,R
andEntry
types:Type
NodeId
,Node
,SnapshotData
andAsyncRuntime
will be filledwith default values mentioned above.
Or one can just use the default types for all:
Upgrade tip:
Ensures types declared in
declare_raft_types
are in the correct orderAdded:
TryAsRef<ForwardToLeader<..>>
forRaftError
;Full Changelog: v0.9.3...v0.9.4
Contributors
This discussion was created from the release v0.9.4.
Beta Was this translation helpful? Give feedback.
All reactions