Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sqlx-postgres/src/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub struct PgListener {
}

/// An asynchronous notification from Postgres.
#[derive(Clone)]
pub struct PgNotification(Notification);

impl PgListener {
Expand Down
2 changes: 1 addition & 1 deletion sqlx-postgres/src/message/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::error::Error;
use crate::io::BufExt;
use crate::message::{BackendMessage, BackendMessageFormat};

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Notification {
pub(crate) process_id: u32,
pub(crate) channel: Bytes,
Expand Down
Loading