mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-22 06:14:39 -04:00
use OC_ env prefix
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
1 parent
0aa120d17b
commit
a46fd132bd
288 files changed
+3368
-3368
No files matched your search
+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