Skip to content

Commit 3cb8592

Browse files
committed
fixup: fix linting warnings from previous commit
Signed-off-by: Nagy Károly Gábriel <[email protected]>
1 parent f0a0118 commit 3cb8592

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

cmd/gtclockd.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ var responseHeader = []byte("s")
5252

5353
// sendResponse handles TAIN protocol response
5454
func sendResponse(conn *net.UDPConn, _ int, remoteaddr *net.UDPAddr, buf []byte) {
55-
5655
copy(buf[0:1], responseHeader)
5756
taiTime := glibtai.TAINNow()
5857
copy(buf[4:16], glibtai.TAINPack(taiTime))
@@ -72,7 +71,6 @@ func validateTAINRequest(config *gtudpd.Config) gtudpd.RequestValidator {
7271

7372
// Check client permissions (this may involve filesystem operations)
7473
return config.ClientOK(remoteIP)
75-
7674
}
7775
}
7876

gtudpd/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func NewServer(config *Config, handler RequestHandler, validator RequestValidato
292292
ctx: ctx,
293293
cancel: cancel,
294294
config: config,
295-
workerPool: make(chan workItem, config.MaxConcurrentResponses*2), // 2X balanced trade-off between throughput and resource control
295+
workerPool: make(chan workItem, config.MaxConcurrentResponses*2), // 2X balanced trade-off
296296
}
297297

298298
// Start cleanup routine

0 commit comments

Comments
 (0)