From 2d5863935698b392fff789d335b2fde86625d025 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 12 Apr 2024 23:22:49 +0000 Subject: [PATCH] fix typo --- controllers/aici_abi/src/host.rs | 2 +- controllers/jsctrl/samples/aici-types.d.ts | 2 +- controllers/jsctrl/ts/aici.ts | 2 +- controllers/jsctrl/ts/native.d.ts | 2 +- py/pyaici/jssrc.py | 2 +- py/pyaici/server.py | 2 +- py/pyaici/server_native.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/controllers/aici_abi/src/host.rs b/controllers/aici_abi/src/host.rs index 07ac97f1..353e252e 100644 --- a/controllers/aici_abi/src/host.rs +++ b/controllers/aici_abi/src/host.rs @@ -41,7 +41,7 @@ extern "C" { // This can be also obtained from the TokTrie. fn aici_host_eos_token() -> TokenId; - // Get value of configuration parameters, like "forks". + // Get value of configuration parameters, like "fork". fn aici_host_get_config(src: *const u8, src_size: u32) -> i32; // Stop the program - any error info is assumed to have been printed already. diff --git a/controllers/jsctrl/samples/aici-types.d.ts b/controllers/jsctrl/samples/aici-types.d.ts index 7b532fd6..112fb9c7 100644 --- a/controllers/jsctrl/samples/aici-types.d.ts +++ b/controllers/jsctrl/samples/aici-types.d.ts @@ -182,7 +182,7 @@ declare module "_aici" { function appendVar(name: string, value: string | Buffer): void; /** - * Get the value of a configuration parameter like "forks". + * Get the value of a configuration parameter like "fork". */ function getConfig(name: string): number; diff --git a/controllers/jsctrl/ts/aici.ts b/controllers/jsctrl/ts/aici.ts index 393e0fb7..ccf928ac 100644 --- a/controllers/jsctrl/ts/aici.ts +++ b/controllers/jsctrl/ts/aici.ts @@ -419,7 +419,7 @@ class Fork extends NextToken { * Check if fork() is supported on this host. */ export function forkSupported(): boolean { - return getConfig("forks") != 0; + return getConfig("fork") != 0; } /** diff --git a/controllers/jsctrl/ts/native.d.ts b/controllers/jsctrl/ts/native.d.ts index b25427e1..51234fb8 100644 --- a/controllers/jsctrl/ts/native.d.ts +++ b/controllers/jsctrl/ts/native.d.ts @@ -181,7 +181,7 @@ declare module "_aici" { function appendVar(name: string, value: string | Buffer): void; /** - * Get the value of a configuration parameter like "forks". + * Get the value of a configuration parameter like "fork". */ function getConfig(name: string): number; diff --git a/py/pyaici/jssrc.py b/py/pyaici/jssrc.py index 6a6e752e..bf36904e 100644 --- a/py/pyaici/jssrc.py +++ b/py/pyaici/jssrc.py @@ -203,7 +203,7 @@ function appendVar(name: string, value: string | Buffer): void; /** - * Get the value of a configuration parameter like "forks". + * Get the value of a configuration parameter like "fork". */ function getConfig(name: string): number; diff --git a/py/pyaici/server.py b/py/pyaici/server.py index 1051cf91..87509458 100644 --- a/py/pyaici/server.py +++ b/py/pyaici/server.py @@ -283,7 +283,7 @@ def fork_supported(): """ Check if the current host supports forking. """ - return get_config("forks") != 0 + return get_config("fork") != 0 async def fork(forks: Union[int, List[Branch]]): diff --git a/py/pyaici/server_native.py b/py/pyaici/server_native.py index f18d1f56..1e8ca357 100644 --- a/py/pyaici/server_native.py +++ b/py/pyaici/server_native.py @@ -77,7 +77,7 @@ def eos_token() -> int: def get_config(name: str) -> int: """ - Get the value of a configuration parameter like "forks" + Get the value of a configuration parameter like "fork" """ ...