大小写调整
This commit is contained in:
parent
a42b6770c9
commit
6c14e82c92
|
|
@ -18,7 +18,7 @@ type Config struct {
|
|||
Address string
|
||||
Port int
|
||||
AppName string
|
||||
opts []grpc.ServerOption
|
||||
Opts []grpc.ServerOption
|
||||
}
|
||||
|
||||
var rpc *grpc.Server
|
||||
|
|
@ -30,13 +30,13 @@ func Init(config *Config) *grpc.Server {
|
|||
Address: "0.0.0.0",
|
||||
Port: 0,
|
||||
AppName: "unknown",
|
||||
opts: []grpc.ServerOption{grpc.MaxRecvMsgSize(1024 * 1024), grpc.MaxSendMsgSize(1024 * 1024)},
|
||||
Opts: []grpc.ServerOption{grpc.MaxRecvMsgSize(1024 * 1024), grpc.MaxSendMsgSize(1024 * 1024)},
|
||||
}
|
||||
}
|
||||
conf = config
|
||||
|
||||
if rpc == nil {
|
||||
rpc = grpc.NewServer(conf.opts...)
|
||||
rpc = grpc.NewServer(conf.Opts...)
|
||||
}
|
||||
return rpc
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue