Skip to content

Commit

Permalink
chore: rename api sdk Rivet -> RivetClient (#1462)
Browse files Browse the repository at this point in the history
Fixes RVT-4198
  • Loading branch information
NathanFlurry committed Nov 25, 2024
1 parent e800f20 commit e03abf4
Show file tree
Hide file tree
Showing 121 changed files with 3,054 additions and 3,041 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,12 @@ fn format_http_rule(

let mut rule = "(".to_string();

let hostname = ds::util::build_ds_hostname(config, proxied_port.server_id, &proxied_port.port_name, proxied_port.datacenter_id)?;
let hostname = ds::util::build_ds_hostname(
config,
proxied_port.server_id,
&proxied_port.port_name,
proxied_port.datacenter_id,
)?;
write!(&mut rule, "Host(`{}`)", hostname)?;

match authorization {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/chirp-workflow/core/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub use crate::{
operation::Operation as OperationTrait,
registry::Registry,
signal::{join_signal, Signal as SignalTrait},
stub::{activity, closure, v, removed},
stub::{activity, closure, removed, v},
utils::GlobalErrorExt,
worker::Worker,
workflow::Workflow as WorkflowTrait,
Expand Down
12 changes: 9 additions & 3 deletions packages/common/chirp-workflow/core/src/stub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use global_error::GlobalResult;
use crate::{
activity::{Activity, ActivityInput},
ctx::WorkflowCtx,
history::removed::Removed,
executable::{AsyncResult, Executable},
history::removed::Removed,
};

// Must wrap all closures being used as executables in this function due to
Expand Down Expand Up @@ -56,7 +56,10 @@ where
I: ActivityInput,
<I as ActivityInput>::Activity: Activity<Input = I>,
{
ActivityStub { inner: input, version: None }
ActivityStub {
inner: input,
version: None,
}
}

pub struct VersionStub {
Expand All @@ -69,7 +72,10 @@ impl VersionStub {
I: ActivityInput,
<I as ActivityInput>::Activity: Activity<Input = I>,
{
ActivityStub { inner: input, version: Some(self.version) }
ActivityStub {
inner: input,
version: Some(self.version),
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions sdks/api/fern/generators.yml

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

8 changes: 4 additions & 4 deletions sdks/api/full/typescript/src/Client.ts

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

Loading

0 comments on commit e03abf4

Please sign in to comment.