Skip to content

Commit

Permalink
Fixed agent snip
Browse files Browse the repository at this point in the history
  • Loading branch information
ddd-mtl committed Aug 27, 2024
1 parent 463e559 commit 880b544
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub fn decode_response<T>(response: ZomeCallResponse) -> ExternResult<T>
/// Shorten AgentPubKey for printing
pub fn snip(agent: &AgentPubKey) -> String {
//format!("{:?}", agent)[12..24].to_string()
//format!("{}", agent)[..12].to_string()
let b64: AgentPubKeyB64 = AgentPubKeyB64::from(agent.clone());
format!("{:?}", b64)[5..13].to_string()
format!("{}", agent)[5..13].to_string()
//let b64: AgentPubKeyB64 = AgentPubKeyB64::from(agent.clone());
//format!("{:?}", b64)[5..13].to_string()
}

0 comments on commit 880b544

Please sign in to comment.