Skip to content

Commit

Permalink
Revert "fix: pubsub emulator"
Browse files Browse the repository at this point in the history
This reverts commit 34ff1e3.
  • Loading branch information
pocesar committed Aug 27, 2024
1 parent 34ff1e3 commit 92ae048
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/sinks/gcp_pubsub/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ pub fn writer_loop(
retry_policy: &retry::Policy,
ordering_key: &str,
attributes: &GenericKV,
emulator: bool,
emulator_endpoint: &Option<String>,
emulator_project_id: &Option<String>,
utils: Arc<Utils>,
) -> Result<(), crate::Error> {
let rt = tokio::runtime::Builder::new_current_thread()
Expand Down
9 changes: 0 additions & 9 deletions src/sinks/gcp_pubsub/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ pub struct Config {
impl SinkProvider for WithUtils<Config> {
fn bootstrap(&self, input: StageReceiver) -> BootstrapResult {
let topic_name = self.inner.topic.to_owned();
let mut use_emulator = self.inner.emulator.unwrap_or(false);
let emulator_endpoint = self.inner.emulator_endpoint.to_owned();
let emulator_project_id = self.inner.emulator_project_id.to_owned();
if use_emulator && (emulator_endpoint.is_none() || emulator_project_id.is_none()) {
use_emulator = false;
}

let error_policy = self
.inner
Expand All @@ -56,9 +50,6 @@ impl SinkProvider for WithUtils<Config> {
&retry_policy,
&ordering_key,
&attributes,
use_emulator,
&emulator_endpoint,
&emulator_project_id,
utils,
)
.expect("writer loop failed");
Expand Down

0 comments on commit 92ae048

Please sign in to comment.