mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
cleanup: move servers to a new struct
For future enhancments like adding more servers. Moving the list of servers to a new structure. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
cfb6abc067
commit
ee0576278f
@ -152,7 +152,12 @@ func (fs *Driver) Run(conf *util.Config) {
|
||||
}
|
||||
|
||||
server := csicommon.NewNonBlockingGRPCServer()
|
||||
server.Start(conf.Endpoint, conf.HistogramOption, fs.is, fs.cs, fs.ns, conf.EnableGRPCMetrics)
|
||||
srv := csicommon.Servers{
|
||||
IS: fs.is,
|
||||
CS: fs.cs,
|
||||
NS: fs.ns,
|
||||
}
|
||||
server.Start(conf.Endpoint, conf.HistogramOption, srv, conf.EnableGRPCMetrics)
|
||||
if conf.EnableGRPCMetrics {
|
||||
util.WarningLogMsg("EnableGRPCMetrics is deprecated")
|
||||
go util.StartMetricsServer(conf)
|
||||
|
Reference in New Issue
Block a user