mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
util: pass Servers by reference to Start()
This commit modifies nonBlockingGRPCServer.Start() to accept Servers parameter by reference rather than value to prevent copy of a large struct. Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
@ -63,7 +63,7 @@ func (fs *Driver) Run(conf *util.Config) {
|
||||
|
||||
// Create gRPC servers
|
||||
server := csicommon.NewNonBlockingGRPCServer()
|
||||
srv := csicommon.Servers{
|
||||
srv := &csicommon.Servers{
|
||||
IS: identity.NewIdentityServer(cd),
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user