Watch
0
0
Fork
You've already forked hyperhive
0

swarm_kv_put takes the bytes, not a one-variant enum

This commit is contained in:
iris 2026-11-16 23:21:17 +01:00 • committed by mara
commit f6a265421f

View file

@ -17,7 +17,7 @@ use swarm_wire::agent_todos::{
self, MAX_LABEL_CHARS, MAX_SUMMARY_CHARS, MAX_TODOS, Todo as WireTodo, Todos as WireTodos,
};
use crate::swarm_kv_put::{Failure, Put, put_retrying};
use crate::swarm_kv_put::{Failure, put_retrying};
use crate::todos::{Todo, Todos};
/// How often the open todos are read.
@ -85,7 +85,7 @@ async fn publish(client: &async_nats::Client, subject: &str, list: &WireTodos) {
return;
}
};
match put_retrying(client, subject, Put::Set(&payload), "the agent's todos").await {
match put_retrying(client, subject, &payload, "the agent's todos").await {
Ok(()) => {
tracing::debug!(
subject,