Skip to content

Commit

Permalink
Remove IP parse/resolve from this service, job-status-recorder will n…
Browse files Browse the repository at this point in the history
…ow handle it better itself
  • Loading branch information
ianmcorvidae committed Apr 2, 2018
1 parent 1d0ba7a commit 85ed366
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
_ "expvar"
"flag"
"net"
"net/http"

"github.com/cyverse-de/configurate"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 85ed366

Please sign in to comment.