experimental features for zram and reset tor (#2299)

* experimental features for zram and reset tor

* zram backend

---------

Co-authored-by: Aiden McClelland <me@drbonez.dev>
This commit is contained in:
Matt Hill
2023-06-09 15:47:11 -06:00
parent 71a15cf222
commit 3ccbc626ff
17 changed files with 320 additions and 1 deletions

View File

@@ -327,6 +327,18 @@ export class MockApiService extends ApiService {
return null
}
async toggleZram(params: RR.ToggleZramReq): Promise<RR.ToggleZramRes> {
await pauseFor(2000)
const patch = [
{
op: PatchOp.REPLACE,
path: '/server-info/zram',
value: params.enable,
},
]
return this.withRevision(patch, null)
}
// marketplace URLs
async marketplaceProxy(