Skip to content

Commit 7170410

Browse files
chore(deps): bump tonic from 0.7.1 to 0.7.2 (vectordotdev#12629)
* chore(deps): bump tonic from 0.7.1 to 0.7.2 Bumps [tonic](https://github.com/hyperium/tonic) from 0.7.1 to 0.7.2. - [Release notes](https://github.com/hyperium/tonic/releases) - [Changelog](https://github.com/hyperium/tonic/blob/master/CHANGELOG.md) - [Commits](hyperium/tonic@v0.7.1...v0.7.2) --- updated-dependencies: - dependency-name: tonic dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Fix gcp_pubsub Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bruce Guenter <[email protected]>
1 parent ca86b82 commit 7170410

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.lock

+3-3
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
@@ -285,7 +285,7 @@ tikv-jemallocator = { version = "0.4.3", default-features = false, optional = tr
285285
tokio-postgres = { version = "0.7.6", default-features = false, features = ["runtime", "with-chrono-0_4"], optional = true }
286286
tokio-tungstenite = {version = "0.15.0", default-features = false, features = ["connect"], optional = true}
287287
toml = { version = "0.5.9", default-features = false }
288-
tonic = { version = "0.7.1", optional = true, default-features = false, features = ["transport", "codegen", "prost", "tls", "tls-roots", "compression"] }
288+
tonic = { version = "0.7.2", optional = true, default-features = false, features = ["transport", "codegen", "prost", "tls", "tls-roots", "compression"] }
289289
trust-dns-proto = { version = "0.21.0", default-features = false, features = ["dnssec"], optional = true }
290290
typetag = { version = "0.1.8", default-features = false }
291291
url = { version = "2.2.2", default-features = false, features = ["serde"] }

src/sources/gcp_pubsub.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl PubsubSource {
236236
connection,
237237
|mut req: Request<()>| {
238238
if let Some(credentials) = &self.credentials {
239-
let authorization = MetadataValue::from_str(&credentials.make_token())
239+
let authorization = MetadataValue::try_from(&credentials.make_token())
240240
.map_err(|_| {
241241
Status::new(
242242
Code::FailedPrecondition,

0 commit comments

Comments
 (0)