Closed drmingdrmer closed 2 years ago
Try to simplify trait bound in the latest PR: https://github.com/datafuselabs/openraft/pull/220
Use specific trait bound instead of the wrapper trait RaftTypeConfig if possible. E.g. replace LeaderId<C: RaftTypeConfig> with LeaderId<NID: NodeID>.
RaftTypeConfig
LeaderId<C: RaftTypeConfig>
LeaderId<NID: NodeID>
Try to simplify trait bound in the latest PR: https://github.com/datafuselabs/openraft/pull/220
Use specific trait bound instead of the wrapper trait
RaftTypeConfig
if possible. E.g. replaceLeaderId<C: RaftTypeConfig>
withLeaderId<NID: NodeID>
.