plumb more contexts in lotus

This commit is contained in:
vyzo
2021-12-13 14:26:59 +02:00
parent 7ed40c1ec7
commit 84710cf27e
8 changed files with 18 additions and 17 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ func HandleMigrateClientFunds(lc fx.Lifecycle, ds dtypes.MetadataDS, wallet full
if err != nil {
return nil
}
b, err := ds.Get(datastore.NewKey("/marketfunds/client"))
b, err := ds.Get(context.Background(), datastore.NewKey("/marketfunds/client"))
if err != nil {
if xerrors.Is(err, datastore.ErrNotFound) {
return nil
@@ -73,7 +73,7 @@ func HandleMigrateClientFunds(lc fx.Lifecycle, ds dtypes.MetadataDS, wallet full
return nil
}
return ds.Delete(datastore.NewKey("/marketfunds/client"))
return ds.Delete(context.Background(), datastore.NewKey("/marketfunds/client"))
},
})
}