Skip to content

Commit

Permalink
chore(deps): Bump async_graphql, async_graphql_warp from 5.0.10 to 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
neuronull committed Jul 31, 2023
1 parent a06c711 commit 1811855
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 24 deletions.
96 changes: 85 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ smpl_jwt = { version = "0.7.1", default-features = false, optional = true }
lapin = { version = "2.3.1", default-features = false, features = ["native-tls"], optional = true }

# API
async-graphql = { version = "5.0.10", default-features = false, optional = true, features = ["chrono"] }
async-graphql-warp = { version = "5.0.10", default-features = false, optional = true }
async-graphql = { version = "6.0.0", default-features = false, optional = true, features = ["chrono", "playground"] }
async-graphql-warp = { version = "6.0.0", default-features = false, optional = true }
itertools = { version = "0.11.0", default-features = false, optional = true }

# API client
Expand Down
4 changes: 2 additions & 2 deletions src/api/schema/components/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ use crate::{

#[derive(Debug, Clone, Interface)]
#[graphql(
field(name = "component_id", type = "String"),
field(name = "component_type", type = "String")
field(name = "component_id", ty = "String"),
field(name = "component_type", ty = "String")
)]
pub enum Component {
Source(source::Source),
Expand Down
2 changes: 1 addition & 1 deletion src/api/schema/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub use uptime::Uptime;
use crate::config::ComponentKey;

#[derive(Interface)]
#[graphql(field(name = "timestamp", type = "Option<DateTime<Utc>>"))]
#[graphql(field(name = "timestamp", ty = "Option<DateTime<Utc>>"))]
pub enum MetricType {
Uptime(Uptime),
}
Expand Down
6 changes: 3 additions & 3 deletions src/api/schema/metrics/sink/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ use crate::event::Metric;

#[derive(Debug, Clone, Interface)]
#[graphql(
field(name = "received_events_total", type = "Option<ReceivedEventsTotal>"),
field(name = "sent_bytes_total", type = "Option<SentBytesTotal>"),
field(name = "sent_events_total", type = "Option<SentEventsTotal>")
field(name = "received_events_total", ty = "Option<ReceivedEventsTotal>"),
field(name = "sent_bytes_total", ty = "Option<SentBytesTotal>"),
field(name = "sent_events_total", ty = "Option<SentEventsTotal>")
)]
pub enum SinkMetrics {
GenericSinkMetrics(generic::GenericSinkMetrics),
Expand Down
6 changes: 3 additions & 3 deletions src/api/schema/metrics/source/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ use crate::event::Metric;

#[derive(Debug, Clone, Interface)]
#[graphql(
field(name = "received_bytes_total", type = "Option<ReceivedBytesTotal>"),
field(name = "received_events_total", type = "Option<ReceivedEventsTotal>"),
field(name = "sent_events_total", type = "Option<SentEventsTotal>")
field(name = "received_bytes_total", ty = "Option<ReceivedBytesTotal>"),
field(name = "received_events_total", ty = "Option<ReceivedEventsTotal>"),
field(name = "sent_events_total", ty = "Option<SentEventsTotal>")
)]
pub enum SourceMetrics {
GenericSourceMetrics(generic::GenericSourceMetrics),
Expand Down
4 changes: 2 additions & 2 deletions src/api/schema/metrics/transform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use crate::event::Metric;

#[derive(Debug, Clone, Interface)]
#[graphql(
field(name = "received_events_total", type = "Option<ReceivedEventsTotal>"),
field(name = "sent_events_total", type = "Option<SentEventsTotal>")
field(name = "received_events_total", ty = "Option<ReceivedEventsTotal>"),
field(name = "sent_events_total", ty = "Option<SentEventsTotal>")
)]
pub enum TransformMetrics {
GenericTransformMetrics(generic::GenericTransformMetrics),
Expand Down

0 comments on commit 1811855

Please sign in to comment.