From 51f0aa7544fbc5b93e65b05181a2d7755b12aa78 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 16 Jan 2025 16:56:49 +0800 Subject: main: Use select{} for the deadlock --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 51540f9..f59437f 100644 --- a/main.go +++ b/main.go @@ -19,6 +19,5 @@ func main() { go serve_mx() - deadlock := make(chan struct{}) - deadlock <- struct{}{} + select {} } -- cgit v1.2.3