mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-15 11:15:22 +09:00
Added zstd constant for linting
This commit is contained in:
1 parent
78a179c971
commit
0d0042b7e6
2 files changed
+4
-2
No files matched your search
@@ -407,7 +407,7 @@ func (h *Headscale) getLegacyMapResponseData(
|
||||
}
|
||||
|
||||
var respBody []byte
|
||||
if mapRequest.Compress == "zstd" {
|
||||
if mapRequest.Compress == ZstdCompression {
|
||||
src, err := json.Marshal(resp)
|
||||
if err != nil {
|
||||
log.Error().
|
||||
@@ -445,7 +445,7 @@ func (h *Headscale) getMapKeepAliveResponse(
|
||||
}
|
||||
var respBody []byte
|
||||
var err error
|
||||
if mapRequest.Compress == "zstd" {
|
||||
if mapRequest.Compress == ZstdCompression {
|
||||
src, err := json.Marshal(mapResponse)
|
||||
if err != nil {
|
||||
log.Error().
|
||||
|
||||
Reference in new issue
Block a user