Skip to content

Commit 67c4beb

Browse files
authored
chore(observability): fix tokio unstable (#18776)
1 parent d9aca80 commit 67c4beb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lib/vector-buffers/src/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ where
147147
T: Send + 'static,
148148
{
149149
#[cfg(tokio_unstable)]
150-
return tokio::task::Builder::new().name(_name).spawn(task);
150+
return tokio::task::Builder::new()
151+
.name(_name)
152+
.spawn(task)
153+
.expect("tokio task should spawn");
151154

152155
#[cfg(not(tokio_unstable))]
153156
tokio::spawn(task)

src/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,10 @@ where
223223
T: Send + 'static,
224224
{
225225
#[cfg(tokio_unstable)]
226-
return tokio::task::Builder::new().name(_name).spawn(task);
226+
return tokio::task::Builder::new()
227+
.name(_name)
228+
.spawn(task)
229+
.expect("tokio task should spawn");
227230

228231
#[cfg(not(tokio_unstable))]
229232
tokio::spawn(task)

0 commit comments

Comments
 (0)