salt-golang
salt-golang copied to clipboard
listener.go is now missing the Call() function
the salt-cli-v2/salt.go
client relies on s.Call()
to pass commands to the salt-master. Some time ago listener.go lost the function.
In testing a custom client, returning the function appears to address the problem:
func (srv *Server) Call(tag string, respch chan Response) {
srv.reqch <- request{tag: tag, respch: respch}
fmt.Println("Added tag", tag)
}
I believe the function was renamed to Register but I missed to change it in the v2 client. You can change your PR and I'll merge or I can do it at some point. Thanks for letting me know.
I'll dig around, and update the PR.