Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Get rid of unused argument in listenAndServeHTTP
Browse files Browse the repository at this point in the history
  • Loading branch information
brb committed Apr 22, 2016
1 parent f880ae0 commit 7d44b10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prog/weaver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func main() {
}
http.Handle("/", handler)
Log.Println("Listening for HTTP control messages on", httpAddr)
go listenAndServeHTTP(httpAddr, muxRouter)
go listenAndServeHTTP(httpAddr)
}

common.SignalHandlerLoop(router)
Expand Down Expand Up @@ -512,7 +512,7 @@ func parseIPAMSeed(ipamSeed string) []mesh.PeerName {
return peerNames
}

func listenAndServeHTTP(httpAddr string, muxRouter *mux.Router) {
func listenAndServeHTTP(httpAddr string) {
protocol := "tcp"
if strings.HasPrefix(httpAddr, "/") {
os.Remove(httpAddr) // in case it's there from last time
Expand Down

0 comments on commit 7d44b10

Please sign in to comment.