From 6464cff5efb591d77878a433b5c8c6d947346d4e Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 23 Nov 2022 23:14:51 +0300 Subject: [PATCH] Fix warning. --- test/tqueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tqueue.cpp b/test/tqueue.cpp index 3c4659f09..b1bf94a09 100644 --- a/test/tqueue.cpp +++ b/test/tqueue.cpp @@ -235,7 +235,7 @@ TEST(TQueue, clear) { td::vector ids; td::Random::Xorshift128plus rnd(123); for (size_t i = 0; i < 1000000; i++) { - auto id = tqueue->push(1, td::string(td::Random::fast(100, 500), 'a'), now + 600000, 0, {}).move_as_ok(); + tqueue->push(1, td::string(td::Random::fast(100, 500), 'a'), now + 600000, 0, {}).ensure(); } auto tail_id = tqueue->get_tail(1); auto clear_start_time = td::Time::now();