Skip to content

Commit

Permalink
fix: remove superfluous sync impl
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Feb 8, 2022
1 parent ef5513a commit 0f25d79
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fastpay_core/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ pub struct ClientState<AuthorityAPI> {
store: ClientStore,
}

unsafe impl<AuthorityAPI> Sync for ClientState<AuthorityAPI> {}

// Operations are considered successful when they successfully reach a quorum of authorities.
#[async_trait]
pub trait Client {
Expand Down

1 comment on commit 0f25d79

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Bench results

�[0m�[0m�[1m�[32m Finished�[0m release [optimized + debuginfo] target(s) in 1.47s
�[0m�[0m�[1m�[32m Running�[0m target/release/bench
�[2m2022-02-08T14:15:15.351255Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Starting benchmark: OrdersAndCerts
�[2m2022-02-08T14:15:15.351277Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Preparing accounts.
�[2m2022-02-08T14:15:15.352011Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Open database on path: "/tmp/DB_5881FF6A3C97E6C250E271E4D706E6357F451AA3"
�[2m2022-02-08T14:15:20.393026Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Preparing transactions.
�[2m2022-02-08T14:15:29.033367Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m Listening to TCP traffic on 127.0.0.1:9555
�[2m2022-02-08T14:15:30.035360Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Number of TCP connections: 2
�[2m2022-02-08T14:15:30.035382Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Set max_in_flight to 500
�[2m2022-02-08T14:15:30.035386Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Sending requests.
�[2m2022-02-08T14:15:30.041040Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m Sending TCP requests to 127.0.0.1:9555
�[2m2022-02-08T14:15:30.052753Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m Sending TCP requests to 127.0.0.1:9555
�[2m2022-02-08T14:15:31.410199Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 5000 packets
�[2m2022-02-08T14:15:32.458279Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 35000
�[2m2022-02-08T14:15:32.788742Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 35000
�[2m2022-02-08T14:15:32.794731Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 10000 packets
�[2m2022-02-08T14:15:33.861551Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 15000 packets
�[2m2022-02-08T14:15:34.496200Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 30000
�[2m2022-02-08T14:15:34.658607Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 20000 packets
�[2m2022-02-08T14:15:34.687518Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 30000
�[2m2022-02-08T14:15:35.447517Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 25000 packets
�[2m2022-02-08T14:15:36.023153Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 25000
�[2m2022-02-08T14:15:36.238576Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 30000 packets
�[2m2022-02-08T14:15:36.270682Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 25000
�[2m2022-02-08T14:15:37.032482Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 35000 packets
�[2m2022-02-08T14:15:37.628991Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 20000
�[2m2022-02-08T14:15:37.829435Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 40000 packets
�[2m2022-02-08T14:15:37.885004Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 20000
�[2m2022-02-08T14:15:38.627413Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 45000 packets
�[2m2022-02-08T14:15:39.245019Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 15000
�[2m2022-02-08T14:15:39.423272Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 50000 packets
�[2m2022-02-08T14:15:39.491011Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 15000
�[2m2022-02-08T14:15:40.220280Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 55000 packets
�[2m2022-02-08T14:15:40.823701Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 10000
�[2m2022-02-08T14:15:41.018714Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 60000 packets
�[2m2022-02-08T14:15:41.051808Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 10000
�[2m2022-02-08T14:15:41.818534Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 65000 packets
�[2m2022-02-08T14:15:42.463960Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 5000
�[2m2022-02-08T14:15:42.615401Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 70000 packets
�[2m2022-02-08T14:15:42.642103Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m In flight 500 Remaining 5000
�[2m2022-02-08T14:15:43.413265Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 75000 packets
�[2m2022-02-08T14:15:44.201641Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m Done sending TCP requests to 127.0.0.1:9555
�[2m2022-02-08T14:15:44.275287Z�[0m �[32m INFO�[0m �[2mfastpay_core::authority_server�[0m�[2m:�[0m 127.0.0.1:9555 has processed 80000 packets
�[2m2022-02-08T14:15:44.318385Z�[0m �[32m INFO�[0m �[2mfastx_network::network�[0m�[2m:�[0m Done sending TCP requests to 127.0.0.1:9555
�[2m2022-02-08T14:15:44.319831Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Received 80000 responses.
�[2m2022-02-08T14:15:44.474514Z�[0m �[33m WARN�[0m �[2mbench�[0m�[2m:�[0m Completed benchmark for OrdersAndCerts
Total time: 14284432us, items: 40000, tx/sec: 2800.2513505612264

Please sign in to comment.