Skip to content

Commit

Permalink
fixes bad epoch endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
b00kdev committed Mar 18, 2024
1 parent 9af2009 commit 25581cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/epochs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl Maestro {
}

pub async fn specific_epoch(&self, epoch_no: i32) -> Result<EpochResp, Box<dyn Error>> {
let url = format!("/epochs/{}/info", epoch_no);
let url = format!("/epochs/{}", epoch_no);
let resp = self.get(&url).await?;
let specific_epoch =
serde_json::from_str(&resp).map_err(|e| Box::new(e) as Box<dyn Error>)?;
Expand Down

0 comments on commit 25581cd

Please sign in to comment.