Testing fixes 0.53.4 #7600

Merged
jessopb merged 3 commits from testing-fixes-0.53.4 into master 2022-06-03 22:09:35 +02:00
3 changed files with 6 additions and 4 deletions
Showing only changes of commit 8f88eae7b9 - Show all commits

View file

@ -14,7 +14,7 @@ const select = (state) => ({
const perform = (dispatch) => ({
getDaemonStatus: () => dispatch(doGetDaemonStatus()),
setDaemonSetting: (key, value) => dispatch(doSetDaemonSetting(key, value)),
cleanBlobs: () => dispatch(doCleanBlobs()),
cleanBlobs: () => dispatch(doCleanBlobs(false)),
});
export default connect(select, perform)(SettingWalletServer);

View file

@ -14,7 +14,7 @@ const select = (state) => ({
const perform = (dispatch) => ({
getDaemonStatus: () => dispatch(doGetDaemonStatus()),
setDaemonSetting: (key, value) => dispatch(doSetDaemonSetting(key, value)),
cleanBlobs: () => dispatch(doCleanBlobs()),
cleanBlobs: () => dispatch(doCleanBlobs(false)),
});
export default connect(select, perform)(SettingViewHosting);

View file

@ -154,10 +154,12 @@ export function doSetDaemonSetting(key, value, doNotDispatch = false) {
};
}
export function doCleanBlobs() {
export function doCleanBlobs(fetchAfter = true) {
return (dispatch) => {
return Lbry.blob_clean().then(() => {
dispatch(doFetchDaemonSettings());
if (fetchAfter) {
dispatch(doFetchDaemonSettings());
}
return 'done';
});
};