Created
November 16, 2022 21:38
-
-
Save Abdulsametileri/2ffcd597705b18c014c12fc05901e479 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func retryFunc(hostPort int) func() error { | |
return func() error { | |
err := kafka.CheckHealth(hostPort) | |
if err != nil { | |
fmt.Printf("kafka connection not ready: %v \n", err) | |
} | |
return err | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment