swarm_kv_put takes the bytes, not a one-variant enum
This commit is contained in:
parent
fe4d68c13f
commit
f6a265421f
1 changed files with 8 additions and 15 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue