I am new to golang and grpc. I am trying to dynamically load some configurations to an app that I am currently working on. I need to learn if grpc client connection from my app to another grpc server connection in an upstream component can be closed and re established based the interrupt value(listening to a channel). I tried this, and I see panic, that says- flag redefined: host. In the flag.go file, at panic line, i see // Happens only if flags are declared with identical names.
I also tried to exit from the goroutine that established grpc connection and restart the goroutine. I see the same error.
Please let me know if closing connection and re establishing is a valid use case without having to restart the app.