Skip to content

Commit

Permalink
fix: make Init in libdecompressor thread safe (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel authored Feb 24, 2025
1 parent 43141fc commit 41c8506
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prover/lib/compressor/libdecompressor/libdecompressor.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ var (
//
//export Init
func Init() {
lock.Lock()
dictStore = dictionary.NewStore()
lock.Unlock()
}

// LoadDictionaries loads a number of dictionaries into the decompressor
Expand Down

0 comments on commit 41c8506

Please sign in to comment.