File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -693,14 +693,7 @@ impl Actor {
693693 fs:: create_dir_all ( db_path. parent ( ) . unwrap ( ) ) ?;
694694 let ( db_send, db_recv) = tokio:: sync:: mpsc:: channel ( 100 ) ;
695695 let ( protect, ds) = delete_set:: pair ( Arc :: new ( options. path . clone ( ) ) ) ;
696- let db_actor = meta:: Actor :: new ( db_path, db_recv, ds, options. batch . clone ( ) ) ;
697- let db_actor = match db_actor {
698- Ok ( actor) => actor,
699- Err ( err) => {
700- println ! ( "failed to create meta actor: {err}" ) ;
701- return Err ( err) ;
702- }
703- } ;
696+ let db_actor = meta:: Actor :: new ( db_path, db_recv, ds, options. batch . clone ( ) ) ?;
704697 let slot_context = Arc :: new ( TaskContext {
705698 options : options. clone ( ) ,
706699 db : meta:: Db :: new ( db_send) ,
@@ -1216,7 +1209,6 @@ impl FsStore {
12161209 let ( commands_tx, commands_rx) = tokio:: sync:: mpsc:: channel ( 100 ) ;
12171210 let ( fs_commands_tx, fs_commands_rx) = tokio:: sync:: mpsc:: channel ( 100 ) ;
12181211 let gc_config = options. gc . clone ( ) ;
1219- println ! ( "Creating actor" ) ;
12201212 let actor = handle
12211213 . spawn ( Actor :: new (
12221214 db_path,
Original file line number Diff line number Diff line change @@ -409,8 +409,7 @@ impl Actor {
409409 options : BatchOptions ,
410410 ) -> anyhow:: Result < Self > {
411411 debug ! ( "creating or opening meta database at {}" , db_path. display( ) ) ;
412- let res = redb:: Database :: create ( & db_path) ;
413- let db = match res {
412+ let db = match redb:: Database :: create ( & db_path) {
414413 Ok ( db) => db,
415414 Err ( DatabaseError :: UpgradeRequired ( 1 ) ) => {
416415 return Err ( anyhow:: anyhow!( "migration from v1 no longer supported" ) ) ;
You can’t perform that action at this time.
0 commit comments