Skip to content

Commit c53fa8e

Browse files
committed
fix: add missing authorization parameter to get_agent_stats in CLI
The generated Rust client was updated with an authorization header parameter for get_agent_stats, but the CLI code wasn't updated.
1 parent 32be79c commit c53fa8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hindsight-cli/src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl ApiClient {
103103

104104
pub fn get_stats(&self, agent_id: &str, _verbose: bool) -> Result<AgentStats> {
105105
self.runtime.block_on(async {
106-
let response = self.client.get_agent_stats(agent_id).await?;
106+
let response = self.client.get_agent_stats(agent_id, None).await?;
107107
let value = response.into_inner();
108108
// Convert to JSON Value first, then parse into our type
109109
let json_value = serde_json::to_value(&value)?;

0 commit comments

Comments
 (0)