little more cleanup
This commit is contained in:
parent
29ab1934b2
commit
7125e3fe4c
|
@ -14,8 +14,6 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
// "gontrol/src/logger"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
|
@ -23,7 +21,6 @@ const(
|
|||
webServerAddr = "127.0.0.1:3333"
|
||||
webSocketAddr = "127.0.0.1:5555"
|
||||
registerURL = "http://" + webServerAddr + "/agents"
|
||||
// wsURL = "ws://" + webSocketAddr + "/data"
|
||||
)
|
||||
|
||||
type Agent struct {
|
||||
|
@ -202,10 +199,6 @@ func main() {
|
|||
|
||||
log.Printf("AgentId: %s", agentId)
|
||||
|
||||
// if err := registerAgent(agentName, agentId, agentIp, agentType); err != nil {
|
||||
// log.Fatalf("Agent registration failed: %v", err)
|
||||
// }
|
||||
|
||||
if err := connectToWebSocket(agentName, agentId, agentIp, agentType, hostName); err != nil {
|
||||
log.Fatalf("Websocket connection failed: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue