Skip to content

Instantly share code, notes, and snippets.

@Abdulsametileri
Created November 16, 2022 21:38
Show Gist options
  • Save Abdulsametileri/2ffcd597705b18c014c12fc05901e479 to your computer and use it in GitHub Desktop.
Save Abdulsametileri/2ffcd597705b18c014c12fc05901e479 to your computer and use it in GitHub Desktop.
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