Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Change metric from driver to platform #1133

Merged
merged 2 commits into from
Mar 9, 2021

Conversation

nieznanysprawiciel
Copy link
Contributor

No description provided.

@@ -388,7 +388,7 @@ impl PaymentProcessor {
activity_payment.allocation_id = None;
}

counter!("payment.amount.sent", ya_metrics::utils::cryptocurrency_to_u64(&msg.amount), "driver" => msg.driver);
counter!("payment.amount.sent", ya_metrics::utils::cryptocurrency_to_u64(&msg.amount), "platform" => msg.driver);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value should be payment_platform not msg.driver then.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now you're using a moved value. Compile before committing. :P

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh. I hoped it will be easy fix :P

@nieznanysprawiciel nieznanysprawiciel force-pushed the payments/fix-change-metric-to-platform branch 2 times, most recently from c8237a2 to d5d03cc Compare March 9, 2021 12:24
@nieznanysprawiciel nieznanysprawiciel force-pushed the payments/fix-change-metric-to-platform branch from d5d03cc to 9e325b6 Compare March 9, 2021 12:31
@nieznanysprawiciel nieznanysprawiciel enabled auto-merge (squash) March 9, 2021 14:20
@nieznanysprawiciel nieznanysprawiciel merged commit 5f82a86 into master Mar 9, 2021
@nieznanysprawiciel nieznanysprawiciel deleted the payments/fix-change-metric-to-platform branch March 10, 2021 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants