diff --git a/.golangci.yaml b/.golangci.yaml index 2ae76f5..5cd37d6 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -9,7 +9,6 @@ linters: - nlreturn # Not desired - godox # Yes. The project is in progress - gochecknoglobals - - gosec - nonamedreturns - paralleltest - predeclared diff --git a/cmd/monitor/page_processes_main.go b/cmd/monitor/page_processes_main.go index d589ccf..274ae02 100644 --- a/cmd/monitor/page_processes_main.go +++ b/cmd/monitor/page_processes_main.go @@ -45,7 +45,7 @@ func (m *modelProcessesMain) getSelectedPid() (int32, error) { if row == nil { return 0, errEmptyTable } - pid, err := strconv.ParseInt(row[0], 10, 64) + pid, err := strconv.ParseInt(row[0], 10, 32) return int32(pid), err } diff --git a/main.go b/main.go index 3013135..460daf2 100644 --- a/main.go +++ b/main.go @@ -72,7 +72,7 @@ func main() { } go receiveMessages(sub) - for idx := range 100 { + for idx := range int32(100) { // Check if program has been requested to stop if !ecal.Ok() { logging.Warn("eCAL.Ok() is false; shutting down") @@ -82,7 +82,7 @@ func main() { logging.Info("Sending message ", idx) // Update message to send - person.Id = int32(idx) + person.Id = idx // Serialize and send protobuf message if err := pub.Send(person); err != nil {