Add todos

This commit is contained in:
Bojan Serafimov
2022-06-08 11:50:01 -04:00
parent db4be89577
commit 28acefb31f
4 changed files with 13 additions and 1 deletions

1
Cargo.lock generated
View File

@@ -59,6 +59,7 @@ dependencies = [
name = "apis"
version = "0.1.0"
dependencies = [
"anyhow",
"bytes",
"serde",
]

View File

@@ -533,7 +533,7 @@ impl PageServerNode {
tenant_id: ZTenantId,
timeline_id: ZTimelineId,
) -> anyhow::Result<()> {
// TODO send the timeline via the "import {tenant} {timeline}" copy both API
// TODO send using apis::upload::send_basebackup
Ok(())
}
}

View File

@@ -8,3 +8,4 @@ edition = "2021"
[dependencies]
bytes = { version = "1.0.1", features = ['serde'] }
serde = { version = "1.0", features = ["derive"] }
anyhow = "1.0"

View File

@@ -1,3 +1,5 @@
use std::path::PathBuf;
use bytes::Bytes;
use serde::{Serialize, Deserialize};
@@ -13,3 +15,11 @@ pub enum ImportBeMessage {
Done,
Error(String),
}
// TODO add a thin binary wrapper for this function, aside from neon_local
pub fn send_basebackup(basebackup_dir: PathBuf) -> anyhow::Result<()> {
// TODO change return type
// TODO implement as sender of ImportFeMessage and receiver of ImportBeMessage
// on generic channel.
Ok(())
}