8000 Add service_name to TransactionContext by alekseysidorov · Pull Request #1274 · exonum/exonum · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add service_name to TransactionContext #1274

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

Merged

Conversation

alekseysidorov
Copy link
Contributor

Overview

Tiny internal improvements to support services with dynamic names.

Definition of Done

  • There are no TODOs left in the merged code
  • Change is covered by automated tests
  • Benchmark results are attached (if applicable)
  • The coding guidelines are followed
  • Public API has proper documentation
  • Changelog is updated if needed (in case of notable or breaking changes)
  • The continuous integration build passes

@codecov
Copy link
codecov bot commented Mar 15, 2019

Codecov Report

Merging #1274 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1274      +/-   ##
==========================================
+ Coverage   92.95%   92.95%   +<.01%     
==========================================
  Files         156      156              
  Lines       23887    23888       +1     
==========================================
+ Hits        22203    22205       +2     
+ Misses       1684     1683       -1
Impacted Files Coverage Δ
exonum/src/blockchain/transaction.rs 93.89% <100%> (+0.02%) ⬆️
exonum/src/blockchain/mod.rs 87.81% <100%> (ø) ⬆️
exonum/src/storage/keys.rs 99.02% <0%> (+0.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8f9a6a4...d0a3f74. Read the comment docs.

/// Returns id of service that own this transaction.
pub fn service_id(&self) -> u16 {
self.service_id
}

/// Returns name of service that own this transaction.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// Returns name of service that own this transaction.
/// Returns a name of the service that own this transaction.

@aleksuss aleksuss requested a review from popzxc March 18, 2019 12:28
@aleksuss aleksuss merged commit 0fe0125 into exonum:master Mar 18, 2019
@alekseysidorov alekseysidorov deleted the service_name_in_transaction_context branch May 29, 2019 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0