dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 47ea3d3268208f3e3029d3fd010afe19243cef2b
parent b82017701bcc1d7884619aa01dd0272977891075
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed,  6 Dec 2023 05:44:46 -0500

go vet

Diffstat:
Mpkg/web/handlers/utils/utils.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/utils/utils.go b/pkg/web/handlers/utils/utils.go @@ -194,7 +194,7 @@ func CloseSignalChan(c echo.Context) <-chan struct{} { ctx, cancel := context.WithCancel(context.Background()) // Listen to the closing of HTTP connection via CloseNotifier notify := c.Request().Context().Done() - notify1 := make(chan os.Signal) + notify1 := make(chan os.Signal, 1) signal.Notify(notify1, syscall.SIGINT, syscall.SIGTERM) utils.SGo(func() { select {