cleanup to satisfy linter
This commit is contained in:
1 parent
11f91b67a8
commit
0222dfd865
15 files changed
+58
-63
No files matched your search
+2
-2
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user