Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Apr 12, 2024
1 parent 08f21d1 commit 2d58639
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion controllers/aici_abi/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion controllers/jsctrl/samples/aici-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion controllers/jsctrl/ts/aici.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion controllers/jsctrl/ts/native.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion py/pyaici/jssrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion py/pyaici/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]):
Expand Down
2 changes: 1 addition & 1 deletion py/pyaici/server_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
"""
...

Expand Down

0 comments on commit 2d58639

Please sign in to comment.