mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-07 16:34:06 +00:00
Implement WASM instance restart to handle out of memory error (#81)
* Test case for wasm out of memory error * Restart wasm instance after N blocks * Handle out of memory error and re instantiate WASM * Remove old instance from map before reinstantiating WASM
This commit is contained in:
@@ -80,3 +80,7 @@ export function testLog (): void {
|
||||
log.error('Error message', []);
|
||||
log.critical('Critical message', []);
|
||||
}
|
||||
|
||||
export function testMemory (value: string): void {
|
||||
log.debug('testMemory value:', [value.slice(0, 10)]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user