From acabbb29c4a1397e39e0b996c69dacbb4d3dea50 Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Mon, 4 May 2026 00:16:35 +0700 Subject: fix: lock the cache map mutex before checking it feat: disable log output checksum validation skipped spam --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index ae8cb6e..f3c1196 100644 --- a/main.go +++ b/main.go @@ -165,11 +165,11 @@ func main() { var inputMetadata *input.MetadataStruct id := inputClient.ID(file) + cacheMapMutex.Lock() if _, ok := cacheMap[id]; !ok { - cacheMapMutex.Lock() cacheMap[id] = make(map[uint32]struct{}) - cacheMapMutex.Unlock() } + cacheMapMutex.Unlock() convertersToLaunch := []int{} for j, conv := range converters { -- cgit v1.3.1+13