Skip to content

Commit

Permalink
Code refactor for async method
Browse files Browse the repository at this point in the history
  • Loading branch information
aakkem committed Apr 18, 2023
1 parent b7d757d commit 94487bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/metrics/test/metrics_manager_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class MockCloudWatchClient : public Aws::CloudWatch::CloudWatchClient {
const Aws::CloudWatch::Model::PutMetricDataRequest& request,
const Aws::CloudWatch::PutMetricDataResponseReceivedHandler& handler,
const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context
= nullptr) const override {
= nullptr) const {
push(&requests_, request);
executor_->submit([=] {
if (num_failures_ <= 0) {
Expand Down

0 comments on commit 94487bd

Please sign in to comment.