mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-30 07:49:41 -05:00
use OC_ env prefix
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ func NewConn(target string, opts ...Option) (*grpc.ClientConn, error) {
|
||||
// To avoid inconsistencies and race conditions we get the configuration here.
|
||||
// Please do NOT follow the pattern of calling `os.Getenv` in the wild without consulting docu team first.
|
||||
maxRcvMsgSize := _defaultMaxCallRecvMsgSize
|
||||
if e := os.Getenv("OCIS_GRPC_MAX_RECEIVED_MESSAGE_SIZE"); e != "" {
|
||||
if e := os.Getenv("OC_GRPC_MAX_RECEIVED_MESSAGE_SIZE"); e != "" {
|
||||
s, err := strconv.Atoi(e)
|
||||
if err != nil || s <= 0 {
|
||||
return nil, errors.Wrap(err, "grpc max message size is not a valid int")
|
||||
|
||||
Reference in New Issue
Block a user