Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit fffaf16

Browse files
committed
Rename const
1 parent c1f0f9c commit fffaf16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Coroutine/Context.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class Context
99
{
10-
protected const MAX_RECURSE_CONTEXT_ID = 50;
10+
protected const MAX_RECURSE_COROUTINE_ID = 50;
1111

1212
/**
1313
* The app containers in different coroutine environment.
@@ -102,7 +102,7 @@ public static function getCoroutineId(): int
102102
}
103103

104104
$counter = 0;
105-
while (($topCoroutineId = Coroutine::getPcid($currentId)) !== -1 && $counter <= self::MAX_RECURSE_CONTEXT_ID) {
105+
while (($topCoroutineId = Coroutine::getPcid($currentId)) !== -1 && $counter <= self::MAX_RECURSE_COROUTINE_ID) {
106106
$currentId = $topCoroutineId;
107107
$counter++;
108108
}

0 commit comments

Comments
 (0)