TGViewer
codedump的电报频道 codedump的电报频道 @codedump_notes · 5.5K subscribers
Post #133 961
#杂
以往的Raft实现里,都使用整数类型的key来区分不同节点,比如etcd项目启动的时候,需要指定节点的整数ID。

这样导致存储节点的额外信息带来不便,比如有些项目里,想将每个节点的地址信息也持久化存储进来,而不仅仅只是整数ID。

在这个老哥的PR之后:
https://github.com/datafuselabs/openraft/pull/220

现在openraft可以让用户定义自己的类型做为每个节点的key以区分不同节点。

老哥太给力了。
GitHub Change: Make `NodeId` type configurable via `RaftTypeConfig` by schreter · Pull Request #220 · datafuselabs/openraft This addresses #217. The change is huge, but it is mostly just adaptations to pass RaftTypeConfig to all required structures. The most interesting part is in raft.rs, where the new NodeId type is a...
More from @codedump_notes
  1. Oct 3, 2026#数据库 使用Rust重写sqlite的公司turso,被superbase收购了:《Turso is joining Supabase to give every agent i…
  2. Sep 27, 2026#系统编程 讲解Go语言并发主题的小书:《Go concurrency distilled》
  3. Sep 22, 2026#开源软件 开源本来承载的主要任务之一就是赢得信任,智谱这一把开源不但没有赢取信任,反而让更多人感到了疑问,比如我。
  4. Sep 22, 2026#开源项目 #Rust #数据库 hawdb:Rust编写的嵌入式图数据库,用于Nowledge产品中管理本地图数据。
  5. Sep 21, 2026#Rust #人工智能 最近看了好几个Rust相关的新闻,比如: * Rust在微软内部升级为一级语言:《Guest Post: Rust Is Tier-1 Language a…
  6. Sep 19, 2026#人工智能 这个翻译可以说是 信达雅 了。
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →