doc: inmemlayer: cleanup comments

This commit is contained in:
Joonas Koivunen
2023-08-28 14:24:38 +03:00
parent c06a4fb511
commit 6f0ab326b4

View File

@@ -31,7 +31,6 @@ use tokio::sync::RwLock;
use super::{DeltaLayerWriter, ResidentLayer};
/// InMemoryLayer is always incremental.
pub struct InMemoryLayer {
conf: &'static PageServerConf,
tenant_id: TenantId,
@@ -213,17 +212,13 @@ impl std::fmt::Display for InMemoryLayer {
}
impl InMemoryLayer {
///
/// Get layer size.
///
pub async fn size(&self) -> Result<u64> {
let inner = self.inner.read().await;
Ok(inner.file.len())
}
///
/// Create a new, empty, in-memory layer
///
pub fn create(
conf: &'static PageServerConf,
timeline_id: TimelineId,