swarm-wire: take agent_limits's wire types
This commit is contained in:
parent
266be0a5db
commit
9cce9c470f
1 changed files with 122 additions and 115 deletions
|
|
@ -2,7 +2,7 @@
|
|||
//! one agent.
|
||||
//!
|
||||
//! Each agent's caps are one value under its own key of `agent-limits`
|
||||
//! (`swarm_queue_client::agent_limits`), which this daemon alone writes. The
|
||||
//! (`swarm_wire::agent_limits`), which this daemon alone writes. The
|
||||
//! hive running the agent reads the key; on the hive, a cap replaces the
|
||||
//! hive's own answer for that field, and a field left unset stays with the
|
||||
//! hive.
|
||||
|
|
@ -16,7 +16,8 @@ use axum::extract::{Path, State};
|
|||
use axum::http::StatusCode;
|
||||
use problem_details::ProblemDetails;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use swarm_queue_client::agent_limits::{self, AgentCaps};
|
||||
use swarm_queue_client::agent_limits;
|
||||
use swarm_wire::agent_limits::AgentCaps;
|
||||
use utoipa::ToSchema;
|
||||
|
||||
use crate::routes::{AppState, error_problem, wanted_error_status};
|
||||
|
|
|
|||
Loading…
Reference in a new issue