Skip to content

Commit 7889196

Browse files
pocesarscarmuega
authored and
Joaquin Hoyos
committed
Paulo/upstream changes 1.9.1 (#4)
* chore: bump Pallas to v0.30.1 (txpipe#811) * Release v1.9.1 * chore: bump version * fix: pubsub emulator again --------- Co-authored-by: Santiago Carmuega <[email protected]>
1 parent 643b9be commit 7889196

File tree

4 files changed

+3
-16
lines changed

4 files changed

+3
-16
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "oura"
33
description = "The tail of Cardano"
4-
version = "1.10.0"
4+
version = "1.10.1"
55
edition = "2021"
66
repository = "https://github.com/txpipe/oura"
77
homepage = "https://github.com/txpipe/oura"

src/sinks/gcp_pubsub/run.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,7 @@ pub fn writer_loop(
5757
.build()?;
5858

5959
let publisher: Publisher = rt.block_on(async {
60-
let client_config = if emulator {
61-
ClientConfig {
62-
project_id: Some(emulator_project_id.clone().unwrap_or_default()),
63-
environment: Environment::Emulator(emulator_endpoint.clone().unwrap_or_default()),
64-
..Default::default()
65-
}
66-
} else {
67-
ClientConfig::default()
68-
};
69-
let client = Client::new(client_config).await?;
60+
let client = Client::new(ClientConfig::default().with_auth().await?).await?;
7061
let topic = client.topic(topic_name);
7162
Result::<_, crate::Error>::Ok(topic.new_publisher(None))
7263
})?;

src/sinks/gcp_pubsub/setup.rs

-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ pub struct Config {
1616
pub retry_policy: Option<retry::Policy>,
1717
pub ordering_key: Option<String>,
1818
pub attributes: Option<GenericKV>,
19-
pub emulator: Option<bool>,
20-
pub emulator_endpoint: Option<String>,
21-
pub emulator_project_id: Option<String>,
22-
2319
#[warn(deprecated)]
2420
pub credentials: Option<String>,
2521
}

0 commit comments

Comments
 (0)