Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F73708
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
642 B
Subscribers
None
View Options
diff --git a/crates/libcollar/src/libcollar.rs b/crates/libcollar/src/libcollar.rs
index 4bd9f92..7064536 100644
--- a/crates/libcollar/src/libcollar.rs
+++ b/crates/libcollar/src/libcollar.rs
@@ -1,21 +1,23 @@
use crate::Result;
use crate::net;
pub struct State {
leash: net::Leash,
pub store: store::Store,
}
pub fn new() -> Result<State> {
- Ok(State {
+ let state = State {
leash: net::Leash::new(),
store: store::open()?,
- })
+ };
+ state.store.namespaces().define("name")?;
+ Ok(state)
}
impl State {
pub fn leash(&self) -> &net::Leash {
&self.leash
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Jun 8, 1:59 PM (1 d, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
47595
Default Alt Text
(642 B)
Attached To
rCOLLAR collar
Event Timeline
Log In to Comment