Skip to content

Commit 37a4466

Browse files
Merge pull request #427 from chronicleworks/fix/import-syntax
* Dependency refresh
2 parents 02cc3fa + b382bc6 commit 37a4466

File tree

17 files changed

+1227
-930
lines changed

17 files changed

+1227
-930
lines changed

Cargo.lock

Lines changed: 1181 additions & 903 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ members = [
2121
Inflector = "0.11.4"
2222
anyhow = "1.0.6"
2323
assert_fs = "1.0"
24-
async-graphql = "5.0.6"
25-
async-graphql-poem = "5.0.6"
24+
async-graphql = "^5.0.6"
25+
async-graphql-poem = "^5.0.6"
2626
async-stream = "0.3.3"
2727
async-trait = "0.1.61"
2828
atty = "0.2.14"
@@ -80,7 +80,7 @@ mockito = "1.0.2"
8080
oauth2 = "4.4"
8181
opa = "0.9.0"
8282
openssl = "0.10.55"
83-
opentelemetry = { version = "0.18.0", features = ["rt-tokio"] }
83+
opentelemetry = { version = "^0.19.0", features = ["rt-tokio"] }
8484
opentelemetry-jaeger = { version = "0.17.0", features = [
8585
"rt-tokio",
8686
"reqwest_collector_client",

charts/chronicle/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ startUpProbe:
4646
## @md | `startUpProbe.periodSeconds` | how often (in seconds) to perform the probe | 10 |
4747
periodSeconds: 10
4848
## @md | `startUpProbe.timeoutSeconds` | number of seconds after which the probe times out | 3 |
49-
timeoutSeconds: 3
49+
timeoutSeconds: 30
5050
## @md | `startUpProbe.namespaceName` | the Chronicle namespace in which the probe operates | default |
5151
namespaceName: default
5252
## @md | `startUpProbe.namespaceUuid` | the UUID of the Chronicle namespace in which the probe operates | fd717fd6-70f1-44c1-81de-287d5e101089 |

crates/api/src/chronicle_graphql/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use async_graphql::{
44
scalar, Context, Enum, Error, ErrorExtensions, Object, ObjectType, Schema, ServerError,
55
SimpleObject, Subscription, SubscriptionType,
66
};
7+
8+
79
use async_graphql_poem::{
810
GraphQL, GraphQLBatchRequest, GraphQLBatchResponse, GraphQLProtocol, GraphQLSubscription,
911
GraphQLWebSocket,

crates/api/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,6 +1837,7 @@ mod test {
18371837
use opa_tp_protocol::state::{policy_address, policy_meta_address, PolicyMeta};
18381838
use rand_core::SeedableRng;
18391839
use sawtooth_sdk::messages::setting::{Setting, Setting_Entry};
1840+
use tracing::info;
18401841

18411842
use std::{collections::HashMap, time::Duration};
18421843
use tempfile::TempDir;
@@ -1860,6 +1861,7 @@ mod test {
18601861
// Recv until we get a commit notification
18611862
loop {
18621863
let commit = self.api.notify_commit.subscribe().recv().await.unwrap();
1864+
info!(wait_for_commit = ?commit);
18631865
match commit {
18641866
common::ledger::SubmissionStage::Submitted(Ok(_)) => continue,
18651867
common::ledger::SubmissionStage::Committed(commit, _id) => {

crates/async-sawtooth-sdk/src/zmq_client.rs

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -231,19 +231,34 @@ impl RequestResponseSawtoothChannel for ZmqRequestResponseSawtoothChannel {
231231
Ok((channel, Ok(Ok(response))))
232232
if response.message_type == Message_MessageType::PING_REQUEST =>
233233
{
234-
trace!(ping_request = ?response.correlation_id);
234+
debug!(ping_request = ?response.correlation_id);
235235
let ping_reply = PingResponse::default().encode_to_vec();
236-
channel
237-
.tx
238-
.lock()
239-
.unwrap()
240-
.send(
241-
Message_MessageType::PING_RESPONSE,
242-
&response.correlation_id,
243-
&ping_reply,
244-
)
245-
.map_err(|e| error!(send_ping_reply = ?e))
246-
.ok();
236+
let tx_guard = channel.tx.lock().expect("Failed to lock tx for sending");
237+
let ping_response_result = tx_guard.send(
238+
Message_MessageType::PING_RESPONSE,
239+
&response.correlation_id,
240+
&ping_reply,
241+
);
242+
243+
if let Err(e) = ping_response_result {
244+
error!(send_ping_reply = ?e);
245+
}
246+
247+
let new_uuid = uuid::Uuid::new_v4().to_string();
248+
let ping_request_result = tx_guard.send(
249+
Message_MessageType::PING_REQUEST,
250+
&new_uuid,
251+
&ping_reply,
252+
);
253+
254+
if let Err(e) = ping_request_result {
255+
error!(send_ping_request = ?e);
256+
}
257+
}
258+
Ok((_channel, Ok(Ok(response))))
259+
if response.message_type == Message_MessageType::PING_RESPONSE =>
260+
{
261+
debug!(ping_response = ?response.correlation_id);
247262
}
248263
Ok((channel, Ok(Ok(response)))) => {
249264
let response = RX::parse_from_bytes(&response.content)

crates/chronicle-protocol/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build = "build.rs"
33
edition = "2021"
44
name = "chronicle-protocol"
5-
version = "0.7.0"
5+
version = "0.7.6"
66

77
[lib]
88
name = "chronicle_protocol"

crates/chronicle-synth/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build = "build.rs"
33
edition = "2021"
44
name = "chronicle-synth"
5-
version = "0.7.0"
5+
version = "0.7.6"
66

77
[lib]
88
name = "chronicle_synth"

crates/chronicle-telemetry/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
edition = "2021"
33
name = "chronicle-telemetry"
4-
version = "0.7.0"
4+
version = "0.7.6"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

crates/common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build = "build.rs"
33
edition = "2021"
44
name = "common"
5-
version = "0.7.0"
5+
version = "0.7.6"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

0 commit comments

Comments
 (0)