diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-03-06 22:33:54 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-06 22:33:54 +0900 |
| commit | 20ac7e62e90e04e3ce74e0996756a2c7297e552e (patch) | |
| tree | 14365dd72030d677ac8eb6c70c988859125d6ccd /src/misc/app-lock.ts | |
| parent | Merge pull request #6130 from syuilo/patch/autogen/v11 (diff) | |
| download | misskey-20ac7e62e90e04e3ce74e0996756a2c7297e552e.tar.gz misskey-20ac7e62e90e04e3ce74e0996756a2c7297e552e.tar.bz2 misskey-20ac7e62e90e04e3ce74e0996756a2c7297e552e.zip | |
チャートInsert時にロックをかけるように (#6100)
* chart lock
* fix
Diffstat (limited to '')
| -rw-r--r-- | src/misc/app-lock.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc/app-lock.ts b/src/misc/app-lock.ts index 3d5ff91882..ca2181f879 100644 --- a/src/misc/app-lock.ts +++ b/src/misc/app-lock.ts @@ -24,3 +24,7 @@ export function getApLock(uri: string, timeout = 30 * 1000) { export function getNodeinfoLock(host: string, timeout = 30 * 1000) { return lock(`nodeinfo:${host}`, timeout); } + +export function getChartInsertLock(lockKey: string, timeout = 30 * 1000) { + return lock(`chart-insert:${lockKey}`, timeout); +} |