Skip to content

Commit 0935253

Browse files
committed
Forgot to put in the terminal match
We needed to make sure that the 6-digit number was at the end of the string. This was a key part of the name pattern.
1 parent e59d007 commit 0935253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/durable_queue.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@
348348
any existing files for that queue name."
349349
([directory q-name queue size]
350350
(locking fs-monitor
351-
(let [pattern (re-pattern (str "^" q-name "_(\\d{6})"))
351+
(let [pattern (re-pattern (str "^" q-name "_(\\d{6}$)"))
352352
last-number (->> directory
353353
io/file
354354
.listFiles

0 commit comments

Comments
 (0)