This commit refactors the listener template to initialize variables when RecreateListeners is called. The reason for this is that a listener is closed when the gRPC server goes down, so a new instance must be created.
This commit refactors the listener template to initialize variables when RecreateListeners is called. The reason for this is that a listener is closed when the gRPC server goes down, so a new instance must be created.