Skip to content

Commit

Permalink
Increate max future count
Browse files Browse the repository at this point in the history
  • Loading branch information
joente committed Feb 26, 2024
1 parent c64bee1 commit 9068e91
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* New user and new collection return the name, not the ID.
* Ignore empty collections on restore for better user experience.
* Increase range max from `9999` to `100000`.
* Increate max

# v1.4.16

Expand Down
2 changes: 1 addition & 1 deletion inc/ti/closure.inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static inline int ti_closure_inc_future(ti_closure_t * closure, ex_t * e)
{
if (closure->future_count == TI_CLOSURE_MAX_FUTURE_COUNT)
ex_set(e, EX_OPERATION,
"maximum nested future count has been reached"DOC_TYPE_CLOSURE);
"maximum future count on closure has been reached"DOC_TYPE_CLOSURE);
else
closure->future_count++;
return e->nr;
Expand Down
2 changes: 1 addition & 1 deletion inc/ti/closure.t.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define TI_CLOSURE_T_H_

#define TI_CLOSURE_MAX_RECURSION_DEPTH 24
#define TI_CLOSURE_MAX_FUTURE_COUNT 8
#define TI_CLOSURE_MAX_FUTURE_COUNT 255

typedef struct ti_closure_s ti_closure_t;

Expand Down
2 changes: 1 addition & 1 deletion inc/ti/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* "-rc0"
* ""
*/
#define TI_VERSION_PRE_RELEASE "-alpha23"
#define TI_VERSION_PRE_RELEASE "-alpha24"

#define TI_MAINTAINER \
"Jeroen van der Heijden <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion itest/test_future.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def run(self):
async def test_recursion(self, client):
with self.assertRaisesRegex(
OperationError,
r'maximum nested future count has been reached;'):
r'maximum future count on closure has been reached;'):
await client.query(r'''
fut = || {
future(nil, fut).then(|_, fut| {
Expand Down

0 comments on commit 9068e91

Please sign in to comment.