From 85ed3662940644d30c287f39d9d293e4b35d98ad Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Mon, 2 Apr 2018 14:10:59 -0700 Subject: [PATCH] Remove IP parse/resolve from this service, job-status-recorder will now handle it better itself --- main.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/main.go b/main.go index 45a93ce..b688022 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,6 @@ import ( "encoding/json" _ "expvar" "flag" - "net" "net/http" "github.com/cyverse-de/configurate" @@ -36,14 +35,6 @@ type JobUpdatePublisher interface { } func running(client JobUpdatePublisher, job *messaging.JobDetails, hostname string, msg string) (*messaging.UpdateMessage, error) { - parsedIP := net.ParseIP(hostname) - if parsedIP == nil { - _, err := net.LookupIP(hostname) - if err != nil { - return nil, err - } - } - updateMessage := &messaging.UpdateMessage{ Job: *job, State: messaging.RunningState,