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 {
693
693
fs:: create_dir_all ( db_path. parent ( ) . unwrap ( ) ) ?;
694
694
let ( db_send, db_recv) = tokio:: sync:: mpsc:: channel ( 100 ) ;
695
695
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 ( ) ) ?;
704
697
let slot_context = Arc :: new ( TaskContext {
705
698
options : options. clone ( ) ,
706
699
db : meta:: Db :: new ( db_send) ,
@@ -1216,7 +1209,6 @@ impl FsStore {
1216
1209
let ( commands_tx, commands_rx) = tokio:: sync:: mpsc:: channel ( 100 ) ;
1217
1210
let ( fs_commands_tx, fs_commands_rx) = tokio:: sync:: mpsc:: channel ( 100 ) ;
1218
1211
let gc_config = options. gc . clone ( ) ;
1219
- println ! ( "Creating actor" ) ;
1220
1212
let actor = handle
1221
1213
. spawn ( Actor :: new (
1222
1214
db_path,
Original file line number Diff line number Diff line change @@ -409,8 +409,7 @@ impl Actor {
409
409
options : BatchOptions ,
410
410
) -> anyhow:: Result < Self > {
411
411
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) {
414
413
Ok ( db) => db,
415
414
Err ( DatabaseError :: UpgradeRequired ( 1 ) ) => {
416
415
return Err ( anyhow:: anyhow!( "migration from v1 no longer supported" ) ) ;
You can’t perform that action at this time.
0 commit comments