cleanup to satisfy linter

This commit is contained in:
Maxim Merzhanov authored and Maxim committed 2019-12-27 17:26:48 +03:00
1 parent 11f91b67a8
commit 0222dfd865
15 files changed
+58 -63

No files matched your search

+2 -2
View File
@@ -54,8 +54,8 @@ func PrepareDeleteModulesCommand(ids []string) []byte {
return prepareCommand(DeleteModulesCommand, DeleteModules{Ids: ids})
}
func PrepareActivateConfigCommand(configId string, date time.Time) []byte {
return prepareCommand(ActivateConfigCommand, ActivateConfig{ConfigId: configId, Date: date})
func PrepareActivateConfigCommand(configID string, date time.Time) []byte {
return prepareCommand(ActivateConfigCommand, ActivateConfig{ConfigId: configID, Date: date})
}
func PrepareDeleteConfigsCommand(ids []string) []byte {
+2 -2
View File
@@ -68,7 +68,7 @@ func NewSocketLeaderClient(address string, leaderDisconnectionCallback func()) *
client := etp.NewClient(etpConfig)
leaderClient := &SocketLeaderClient{
client: client,
url: getUrl(address),
url: getURL(address),
}
ctx, cancel := context.WithCancel(context.Background())
leaderClient.globalCtx = ctx
@@ -90,7 +90,7 @@ func NewSocketLeaderClient(address string, leaderDisconnectionCallback func()) *
return leaderClient
}
func getUrl(address string) string {
func getURL(address string) string {
addr, err := net.ResolveTCPAddr("tcp", address)
if err != nil {
panic(err) // must never occurred