diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index b1065113..83b49644 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -151,6 +151,7 @@ are mostly useful for developers. Use with care. - "events" (the events package) - "files" (the files package) - "http" (the main package; HTTP requests) + - "locks" (the sync package; trace long held locks) - "net" (the main package; connections & network messages) - "model" (the model package) - "scanner" (the scanner package) diff --git a/internal/sync/sync_test.go b/internal/sync/sync_test.go index 6729da03..70ed5ff2 100644 --- a/internal/sync/sync_test.go +++ b/internal/sync/sync_test.go @@ -16,6 +16,8 @@ import ( ) func TestTypes(t *testing.T) { + debug = false + if _, ok := NewMutex().(*sync.Mutex); !ok { t.Error("Wrong type") }