|
@@ -49,6 +49,8 @@ use taud::{
|
|
|
util::{check_write_access, set_event},
|
|
util::{check_write_access, set_event},
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+const DEFAULT_WORKSPACE: &str = "darkfi-dev";
|
|
|
|
|
+
|
|
|
pub struct JsonRpcInterface {
|
|
pub struct JsonRpcInterface {
|
|
|
dataset_path: PathBuf,
|
|
dataset_path: PathBuf,
|
|
|
notify_queue_sender: smol::channel::Sender<TaskInfo>,
|
|
notify_queue_sender: smol::channel::Sender<TaskInfo>,
|
|
@@ -123,7 +125,7 @@ impl JsonRpcInterface {
|
|
|
dnet_sub: JsonSubscriber,
|
|
dnet_sub: JsonSubscriber,
|
|
|
deg_sub: JsonSubscriber,
|
|
deg_sub: JsonSubscriber,
|
|
|
) -> Self {
|
|
) -> Self {
|
|
|
- let workspace = Mutex::new(workspaces.iter().last().unwrap().0.clone());
|
|
|
|
|
|
|
+ let workspace = Mutex::new(DEFAULT_WORKSPACE.to_string());
|
|
|
Self {
|
|
Self {
|
|
|
dataset_path,
|
|
dataset_path,
|
|
|
nickname,
|
|
nickname,
|