From 9d07f31663e2b9eb8c044a5ca95781eef58970af Mon Sep 17 00:00:00 2001 From: Imbolc Date: Tue, 5 Jul 2022 18:04:42 +0300 Subject: [PATCH] Fix a few docstrings --- src/spawn.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spawn.rs b/src/spawn.rs index d08e374..1cf051a 100644 --- a/src/spawn.rs +++ b/src/spawn.rs @@ -150,7 +150,7 @@ pub async fn commit<'b, E: sqlx::Executor<'b, Database = Postgres>>( Ok(()) } -/// Clear jobs from the specified queues. +/// Clear jobs from the specified channels. pub async fn clear<'b, E: sqlx::Executor<'b, Database = Postgres>>( executor: E, channel_names: &[&str], @@ -162,7 +162,7 @@ pub async fn clear<'b, E: sqlx::Executor<'b, Database = Postgres>>( Ok(()) } -/// Clear jobs from the specified queues. +/// Clear jobs from all channels. pub async fn clear_all<'b, E: sqlx::Executor<'b, Database = Postgres>>( executor: E, ) -> Result<(), sqlx::Error> {