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:
Rakshith R
2025-06-02 17:34:26 +05:30
committed by mergify[bot]
parent 2217e5cc35
commit dd93de0bfc
4 changed files with 6 additions and 6 deletions

View File

@ -193,7 +193,7 @@ func (fs *Driver) Run(conf *util.Config) {
}
server := csicommon.NewNonBlockingGRPCServer()
srv := csicommon.Servers{
srv := &csicommon.Servers{
IS: fs.is,
CS: fs.cs,
NS: fs.ns,