Skip to content

Commit

Permalink
fixup! feat: implement size-limited JSON requests for save metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
pranc1ngpegasus committed Oct 15, 2024
1 parent 1d7f96a commit b5aa7f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agent/src/repository/metric_repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub trait MetricsCacheRepository {

#[trait_variant::make(Send)]
pub trait MetricStoreRepository {
async fn save(&self, request: VecDeque<MetricsWithTimestamp>) -> anyhow::Result<()>;
async fn save(&self, mut request: VecDeque<MetricsWithTimestamp>) -> anyhow::Result<()>;
}

#[derive(Debug, Serialize, Clone, PartialEq)]
Expand Down
2 changes: 1 addition & 1 deletion agent/src/services/studio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ struct MetricsWithTimestampStr {
}

impl MetricStoreRepository for Studio {
async fn save(&self, request: VecDeque<MetricsWithTimestamp>) -> anyhow::Result<()> {
async fn save(&self, mut request: VecDeque<MetricsWithTimestamp>) -> anyhow::Result<()> {
let my_did = self.did_accessor.get_my_did();
let my_keyring = self.did_accessor.get_my_keyring();

Expand Down

0 comments on commit b5aa7f1

Please sign in to comment.