Skip to content

Commit

Permalink
Rename client to producer (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Mar 8, 2024
1 parent bbfa5b0 commit 27624b9
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 17 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
members = [
"rs/canister/api",
"rs/canister/impl",
"rs/client",
"rs/client/agent_runtime",
"rs/client/cdk_runtime",
"rs/producer",
"rs/producer/agent_runtime",
"rs/producer/cdk_runtime",
"rs/integration_tests",
"rs/utils",
]
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion rs/client/Cargo.toml → rs/producer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "event_store_client"
name = "event_store_producer"
version = "0.1.0"
edition = "2021"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "event_store_client_agent_runtime"
name = "event_store_producer_agent_runtime"
version = "0.1.0"
edition = "2021"

Expand All @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
candid.workspace = true
event_store_canister.path = "../../canister/api"
event_store_client.path = ".."
event_store_producer.path = ".."
ic-agent.workspace = true
ic_principal.workspace = true
rand.workspace = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use event_store_canister::{IdempotentEvent, PushEventsArgs, TimestampMillis};
use event_store_client::{
use event_store_producer::{
FlushOutcome, Runtime, FLUSH_OUTCOME_FAILED_SHOULD_RETRY, FLUSH_OUTCOME_SUCCESS,
};
use ic_agent::Agent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "event_store_client_cdk_runtime"
name = "event_store_producer_cdk_runtime"
version = "0.1.0"
edition = "2021"

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

[dependencies]
event_store_canister.path = "../../canister/api"
event_store_client.path = ".."
event_store_producer.path = ".."
ic-cdk.workspace = true
ic-cdk-timers.workspace = true
ic_principal.workspace = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use event_store_canister::{IdempotentEvent, PushEventsArgs, TimestampMillis};
use event_store_client::{
use event_store_producer::{
FlushOutcome, Runtime, FLUSH_OUTCOME_FAILED_SHOULD_RETRY, FLUSH_OUTCOME_SUCCESS,
};
use ic_cdk_timers::TimerId;
Expand Down
2 changes: 0 additions & 2 deletions rs/client/src/lib.rs → rs/producer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ struct ClientInner<R> {
events: Vec<IdempotentEvent>,
#[serde(skip)]
next_flush_scheduled: Option<TimestampMillis>,
#[serde(default)]
flush_in_progress: bool,
#[serde(default)]
total_events_flushed: u64,
}

Expand Down
File renamed without changes.

0 comments on commit 27624b9

Please sign in to comment.