aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-11 17:46:48 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-11 17:46:48 -0400
commit216af36e86ec3530565fa6a216f91fd72df501c5 (patch)
tree054948d5751aa62c08d60d8fc1dfa9f426e07ab3 /src
parent50aebab619c16e4147659d1c1b89ce0d7cc2650d (diff)
Make the `server.indexer` threadlocal, enabling running the tests with multiple threads
Diffstat (limited to 'src')
-rw-r--r--src/server/indexer.odin1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/indexer.odin b/src/server/indexer.odin
index 791f06d..b7a3bf1 100644
--- a/src/server/indexer.odin
+++ b/src/server/indexer.odin
@@ -12,6 +12,7 @@ Indexer :: struct {
index: MemoryIndex,
}
+@(thread_local)
indexer: Indexer
FuzzyResult :: struct {