chore: modernize go sources (#24896)
This commit is contained in:
parent
3421e8df81
commit
352012d24b
324 changed files with 590 additions and 583 deletions
|
|
@ -173,7 +173,7 @@ func (m *Client) Cleanup(topic string, retained bool) error {
|
|||
}
|
||||
|
||||
// Publish asynchronously publishes payload using client qos
|
||||
func (m *Client) Publish(topic string, retained bool, payload interface{}) {
|
||||
func (m *Client) Publish(topic string, retained bool, payload any) {
|
||||
go func() {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), request.Timeout)
|
||||
defer cancel()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue