mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 12:45:47 +01:00
rename waltree into treedb
WAL was a wrong name. It's not a Write Ahead Log, but a "Write Behind Log" (new concept haha), so it made no sense to keep wal. And wbl is not unpronounceable.
This commit is contained in:
parent
5f21db5279
commit
037b3498bc
6 changed files with 8 additions and 4 deletions
|
|
@ -56,7 +56,7 @@ This code has async code, to handle input streams and communication with clients
|
|||
- `filter.rs`: Filter managers: handle lines, persistance, store matches and trigger actions. This is the main piece of runtime logic.
|
||||
- `socket.rs`: The socket task, responsible for communication with clients.
|
||||
|
||||
### `src/waltree`
|
||||
### `src/tree`
|
||||
|
||||
Persistence layer.
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,10 @@ use tracing::{error, info};
|
|||
use crate::{
|
||||
concepts::{Action, Filter, Match, Pattern, Time},
|
||||
protocol::{Order, PatternStatus},
|
||||
treedb::{
|
||||
helpers::{to_match, to_matchtime, to_time, to_u64},
|
||||
Database, Tree,
|
||||
},
|
||||
};
|
||||
|
||||
use super::{shutdown::ShutdownToken, KeyspaceExt as _, MatchTime, Tree};
|
||||
|
|
|
|||
|
|
@ -16,4 +16,4 @@ pub mod concepts;
|
|||
pub mod daemon;
|
||||
pub mod protocol;
|
||||
pub mod tests;
|
||||
pub mod waltree;
|
||||
pub mod treedb;
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ mod tests {
|
|||
|
||||
use crate::{
|
||||
concepts::Config,
|
||||
waltree::{helpers::*, raw::WriteDB, rotate_db, Database, Entry, DB_NAME},
|
||||
treedb::{helpers::*, raw::WriteDB, rotate_db, Database, Entry, DB_NAME},
|
||||
};
|
||||
|
||||
#[tokio::test]
|
||||
|
|
@ -300,7 +300,7 @@ mod tests {
|
|||
use tempfile::NamedTempFile;
|
||||
use tokio::fs::{read, write, File};
|
||||
|
||||
use crate::waltree::{
|
||||
use crate::treedb::{
|
||||
raw::{DatabaseError, ReadDB, WriteDB, DB_TREE_ID},
|
||||
Entry,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue