refactor(agents): hide write lock guard helpers · openclaw/openclaw@70023a1
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -45,7 +45,7 @@ export class SessionWriteLockStaleError extends Error {
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** Returns whether an error is a session write-lock timeout. */ |
48 | | -export function isSessionWriteLockTimeoutError(err: unknown): boolean { |
| 48 | +function isSessionWriteLockTimeoutError(err: unknown): boolean { |
49 | 49 | return ( |
50 | 50 | err instanceof SessionWriteLockTimeoutError || |
51 | 51 | Boolean( |
@@ -57,7 +57,7 @@ export function isSessionWriteLockTimeoutError(err: unknown): boolean {
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** Returns whether an error is a stale session write-lock failure. */ |
60 | | -export function isSessionWriteLockStaleError(err: unknown): boolean { |
| 60 | +function isSessionWriteLockStaleError(err: unknown): boolean { |
61 | 61 | return ( |
62 | 62 | err instanceof SessionWriteLockStaleError || |
63 | 63 | Boolean( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。