Json tags to some structs were missing. Fix ServerRep reply on the server.

This commit is contained in:
Krishna Srinivas
2015-09-22 01:31:20 -07:00
parent 3b050a4299
commit ca17408be0
2 changed files with 5 additions and 7 deletions
+2 -4
View File
@@ -27,10 +27,8 @@ import (
type serverRPCService struct{}
func (s *serverRPCService) Add(r *http.Request, arg *ServerArg, rep *ServerRep) error {
rep = &ServerRep{
Host: "192.168.1.1:9002",
ID: "6F27CB16-493D-40FA-B035-2A2E5646066A",
}
rep.Host = "192.168.1.1:9002"
rep.ID = "6F27CB16-493D-40FA-B035-2A2E5646066A"
return nil
}