25 lines
540 B
Rust
25 lines
540 B
Rust
#![allow(unused_variables)] // TODO(you): remove this lint after implementing this mod
|
|
#![allow(dead_code)] // TODO(you): remove this lint after implementing this mod
|
|
|
|
use std::collections::BTreeMap;
|
|
|
|
pub struct Watermark {
|
|
readers: BTreeMap<u64, usize>,
|
|
}
|
|
|
|
impl Watermark {
|
|
pub fn new() -> Self {
|
|
Self {
|
|
readers: BTreeMap::new(),
|
|
}
|
|
}
|
|
|
|
pub fn add_reader(&mut self, ts: u64) {}
|
|
|
|
pub fn remove_reader(&mut self, ts: u64) {}
|
|
|
|
pub fn watermark(&self) -> Option<u64> {
|
|
Some(0)
|
|
}
|
|
}
|