mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
- Add syncutil package with deadlock-detecting mutex (build-tag switchable) - Add main_test.go TestMain scaffolding across all server packages - Harden concurrency in ws, admin, auth, and updater packages - Update CI workflow, go.mod/sum, Cargo.lock, and root changelogen tooling
12 lines
202 B
Go
12 lines
202 B
Go
//go:build !deadlock
|
|
|
|
package syncutil
|
|
|
|
import "sync"
|
|
|
|
// Mutex is sync.Mutex in production builds.
|
|
type Mutex = sync.Mutex
|
|
|
|
// RWMutex is sync.RWMutex in production builds.
|
|
type RWMutex = sync.RWMutex
|