Fix according to go vet results

This commit is contained in:
loyalsoldier
2020-08-26 19:35:33 +08:00
parent 30edcef67a
commit f9175e3bc8
12 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ func NewServerSpec(dest net.Destination, valid ValidationStrategy, users ...*Mem
}
}
func NewServerSpecFromPB(spec ServerEndpoint) (*ServerSpec, error) {
func NewServerSpecFromPB(spec *ServerEndpoint) (*ServerSpec, error) {
dest := net.TCPDestination(spec.Address.AsAddress(), net.Port(spec.Port))
mUsers := make([]*MemoryUser, len(spec.User))
for idx, u := range spec.User {