Skip to content

Commit

Permalink
update monitoring (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
warittornc authored Dec 3, 2024
1 parent 7daccfc commit 82dddc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bothan-core/src/monitoring/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl Client {
{
self.post(
uuid,
Topic::Records,
Topic::Record,
SignalRecordsWithTxHash { tx_hash, records },
)
.await
Expand Down Expand Up @@ -71,7 +71,7 @@ impl Client {

let resp = self
.client
.post(self.url.clone())
.post(format!("{}/entries", self.url))
.headers(header)
.json(&entry)
.send()
Expand Down
2 changes: 1 addition & 1 deletion bothan-core/src/monitoring/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub const HEARTBEAT_INTERVAL: Duration = Duration::new(60, 0);
#[derive(Serialize)]
#[serde(rename_all = "lowercase")]
pub enum Topic {
Records,
Record,
Heartbeat,
}

Expand Down

0 comments on commit 82dddc1

Please sign in to comment.