launch_wal_receiver: apply joonas's review suggestion (visibility + doc comment)

This commit is contained in:
Christian Schwarz
2023-05-24 17:20:03 +02:00
parent 2c424c8f4e
commit 69cfa9fe61

View File

@@ -1468,7 +1468,11 @@ impl Timeline {
*flush_loop_state = FlushLoopState::Running;
}
pub(super) fn launch_wal_receiver(
/// Creates and starts the wal receiver.
///
/// This function is expected to be called at most once per Timeline's lifecycle
/// when the timeline is activated.
fn launch_wal_receiver(
self: &Arc<Self>,
ctx: &RequestContext,
broker_client: BrokerClientChannel,