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
|
|
@ -26,7 +26,7 @@ use serde_json::Value;
|
|||
use swarm_wire::agent_commands::{self, Skill, Skills};
|
||||
use tokio::sync::watch;
|
||||
|
||||
use crate::swarm_kv_put::{Failure, Put, put_retrying};
|
||||
use crate::swarm_kv_put::{Failure, put_retrying};
|
||||
|
||||
/// The newest list claude reported, for [`run`] to publish. `None` until the
|
||||
/// first init event of this process.
|
||||
|
|
@ -102,7 +102,7 @@ async fn run(agent: String) {
|
|||
continue;
|
||||
}
|
||||
};
|
||||
match put_retrying(&client, &subject, Put::Set(&payload), "the agent's skills").await {
|
||||
match put_retrying(&client, &subject, &payload, "the agent's skills").await {
|
||||
Ok(()) => tracing::info!(
|
||||
subject,
|
||||
count = skills.skills.len(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue