aboutsummaryrefslogtreecommitdiff
path: root/lib/websocket
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-06 03:06:54 +0700
committerShulhan <ms@kilabit.info>2024-03-06 03:06:54 +0700
commit1e7cb99f42bcd41e98326bd9406d3cecfb2a4542 (patch)
tree9981f1ebc98670f516939374012646314dda663f /lib/websocket
parent16607dc13477ee53d95ee0295192643f6e726652 (diff)
downloadpakakeh.go-1e7cb99f42bcd41e98326bd9406d3cecfb2a4542.tar.xz
all: conform with linter gosec, ineffasign, and makezero
Some of warnings from those linter are false positives, so we just annotated them.
Diffstat (limited to 'lib/websocket')
-rw-r--r--lib/websocket/request.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/websocket/request.go b/lib/websocket/request.go
index d56d6406..60a44349 100644
--- a/lib/websocket/request.go
+++ b/lib/websocket/request.go
@@ -59,7 +59,7 @@ type Request struct {
ID uint64 `json:"id"`
// Conn is the client connection, where the request come from.
- Conn int
+ Conn int `json:"-"`
}
// reset all Request field's value to zero.