diff --git a/internal/wasm/store.go b/internal/wasm/store.go index 91740e1a..2ab9ac93 100644 --- a/internal/wasm/store.go +++ b/internal/wasm/store.go @@ -625,8 +625,8 @@ const ( ) func (s *Store) getFunctionTypeID(t *FunctionType) (FunctionTypeID, error) { - key := t.key() s.mux.RLock() + key := t.key() id, ok := s.typeIDs[key] s.mux.RUnlock() if !ok {