Skip to content

Commit a3b2e73

Browse files
committed
fix: remove unused function
1 parent fe71d90 commit a3b2e73

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

sentry/src/db/channel.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -70,27 +70,6 @@ pub async fn insert_channel(
7070
.await
7171
}
7272

73-
pub async fn get_channel_by_creator(
74-
pool: &DbPool,
75-
id: &ChannelId,
76-
) -> Result<Vec<Channel>, RunError<bb8_postgres::tokio_postgres::Error>> {
77-
pool.run(move |connection| {
78-
async move {
79-
match connection
80-
.prepare("SELECT id FROM channels WHERE creator = $1")
81-
.await
82-
{
83-
Ok(select) => match connection.query(&select, &[&id]).await {
84-
Ok(results) => Ok((results.iter().map(Channel::from).collect(), connection)),
85-
Err(e) => Err((e, connection)),
86-
},
87-
Err(e) => Err((e, connection)),
88-
}
89-
}
90-
})
91-
.await
92-
}
93-
9473
mod list_channels {
9574
use crate::db::DbPool;
9675
use bb8::RunError;

0 commit comments

Comments
 (0)