Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed May 2, 2023
1 parent 25a2658 commit f3f9ac6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ascii_over_tcp_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type ASCIIOverTCPClientHandler struct {
func NewASCIIOverTCPClientHandler(address string) *ASCIIOverTCPClientHandler {
handler := &ASCIIOverTCPClientHandler{
asciiTCPTransporter: &asciiTCPTransporter{
defaultTcpTransporter(address),
defaultTCPTransporter(address),
},
}
return handler
Expand Down
2 changes: 1 addition & 1 deletion rtu_over_tcp_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type RTUOverTCPClientHandler struct {
func NewRTUOverTCPClientHandler(address string) *RTUOverTCPClientHandler {
handler := &RTUOverTCPClientHandler{
rtuTCPTransporter: &rtuTCPTransporter{
defaultTcpTransporter(address),
defaultTCPTransporter(address),
},
}

Expand Down
6 changes: 3 additions & 3 deletions tcpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type TCPClientHandler struct {

// NewTCPClientHandler allocates a new TCPClientHandler.
func NewTCPClientHandler(address string) *TCPClientHandler {
transport := defaultTcpTransporter(address)
transport := defaultTCPTransporter(address)
h := &TCPClientHandler{
tcpTransporter: &transport,
}
Expand Down Expand Up @@ -156,8 +156,8 @@ type tcpTransporter struct {
lastSuccessfulTransactionID uint16
}

// defaultTcpTransporter creates a new tcpTransporter with default values.
func defaultTcpTransporter(address string) tcpTransporter {
// defaultTCPTransporter creates a new tcpTransporter with default values.
func defaultTCPTransporter(address string) tcpTransporter {
return tcpTransporter{
Address: address,
Timeout: tcpTimeout,
Expand Down

0 comments on commit f3f9ac6

Please sign in to comment.