chore: fix linter (#11028)
This commit is contained in:
parent
098a0fc2b5
commit
58e2421a5b
91 changed files with 374 additions and 280 deletions
|
|
@ -74,7 +74,7 @@ type ModbusHandler struct {
|
|||
Timeout time.Duration
|
||||
}
|
||||
|
||||
func (h *ModbusHandler) testRegister(log *util.Logger, conn gridx.Client) bool {
|
||||
func (h *ModbusHandler) testRegister(_ *util.Logger, conn gridx.Client) bool {
|
||||
var bytes []byte
|
||||
var err error
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ type TcpHandler struct {
|
|||
dialer net.Dialer
|
||||
}
|
||||
|
||||
func (h *TcpHandler) Test(log *util.Logger, in ResultDetails) (res []ResultDetails) {
|
||||
func (h *TcpHandler) Test(_ *util.Logger, in ResultDetails) (res []ResultDetails) {
|
||||
for _, port := range h.Ports {
|
||||
addr := net.JoinHostPort(in.IP, strconv.Itoa(port))
|
||||
conn, err := h.dialer.Dial("tcp", addr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue