@@ -114,7 +114,7 @@ impl CreateReplicationSlotResponse {
114
114
///
115
115
/// #[tokio::main]
116
116
/// async fn main() -> Result<(), Error> {
117
- /// let conninfo = "host=/tmp user=postgres dbname=postgres";
117
+ /// let conninfo = "host=localhost user=postgres dbname=postgres";
118
118
///
119
119
/// // form replication connection
120
120
/// let (mut rclient, rconnection) =
@@ -161,7 +161,7 @@ impl CreateReplicationSlotResponse {
161
161
///
162
162
/// #[tokio::main]
163
163
/// async fn main() -> Result<(), Error> {
164
- /// let conninfo = "host=/tmp user=postgres dbname=postgres";
164
+ /// let conninfo = "host=localhost user=postgres dbname=postgres";
165
165
///
166
166
/// // form replication connection
167
167
/// let (mut rclient, rconnection) =
@@ -217,7 +217,7 @@ pub struct ReplicationClient {
217
217
}
218
218
219
219
impl ReplicationClient {
220
- pub fn new ( client : Client ) -> ReplicationClient {
220
+ pub ( crate ) fn new ( client : Client ) -> ReplicationClient {
221
221
ReplicationClient {
222
222
client : client,
223
223
replication_stream_active : false ,
@@ -615,7 +615,9 @@ impl ReplicationClient {
615
615
}
616
616
}
617
617
618
- /// A stream of `START_REPLICATION` query data.
618
+ /// A stream of data from a `START_REPLICATION` command.
619
+ ///
620
+ /// Intended to be used with the [next()](tokio::stream::StreamExt::next) method.
619
621
#[ pin_project( PinnedDrop ) ]
620
622
pub struct ReplicationStream < ' a > {
621
623
rclient : & ' a mut ReplicationClient ,
0 commit comments