File tree Expand file tree Collapse file tree
crates/zeroclaw-gateway/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1415,8 +1415,8 @@ async fn handle_pair(
14151415 . map ( String :: from)
14161416 } ;
14171417 let device_name = read_header ( "X-Device-Name" ) ;
1418- let device_type = read_header ( "X-Device-Type" )
1419- . or_else ( || infer_device_type_from_ua ( user_agent) ) ;
1418+ let device_type =
1419+ read_header ( "X-Device-Type" ) . or_else ( || infer_device_type_from_ua ( user_agent) ) ;
14201420 let ( ua_os_name, ua_os_version) = infer_os_from_ua ( user_agent) ;
14211421 registry. register (
14221422 token_hash,
Original file line number Diff line number Diff line change @@ -152,10 +152,7 @@ impl NodeRegistry {
152152/// Distinct from `/api/devices` (paired clients of *this* daemon). A node is
153153/// a separate process — typically another ZeroClaw daemon, or a peripheral
154154/// device that opted in to advertise tools.
155- pub async fn list_nodes (
156- State ( state) : State < AppState > ,
157- headers : HeaderMap ,
158- ) -> impl IntoResponse {
155+ pub async fn list_nodes ( State ( state) : State < AppState > , headers : HeaderMap ) -> impl IntoResponse {
159156 if let Err ( e) = super :: api:: require_auth ( & state, & headers) {
160157 return e. into_response ( ) ;
161158 }
You can’t perform that action at this time.
0 commit comments