salt-golang icon indicating copy to clipboard operation
salt-golang copied to clipboard

listener.go is now missing the Call() function

Open jbeisser opened this issue 4 years ago • 2 comments

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)
}

jbeisser avatar Nov 27 '20 20:11 jbeisser

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.

tsaridas avatar Jan 07 '21 16:01 tsaridas

I'll dig around, and update the PR.

jbeisser avatar Jan 07 '21 17:01 jbeisser