diff --git a/README.md b/README.md index 4a34666..d52ae24 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,8 @@ A proper list contains: * `endpoints`: List of the GreptimeDB server address in the form of `{http, host, port}` * `pool`, `pool_size` etc.: the client pool settings -* `grpc_options`: grpxbox [client options](https://github.com/tsloughter/grpcbox#defining-channels) +* `grpc_opts`: grpxbox [client options](https://github.com/tsloughter/grpcbox#defining-channels) +* `ssl_opts`: when the endpoint scheme is `https`, the ssl options to use(`[]` by default). * `auth`: authentication options, `{auth, {basic, #{username => <<"greptime_user">>, password => <<"greptime_pwd">>}}}` for example. * `timeunit`: Timestamp unit, supports: * `ns` or `nanosecond` diff --git a/src/greptimedb_worker.erl b/src/greptimedb_worker.erl index 2390dac..4a8bac6 100644 --- a/src/greptimedb_worker.erl +++ b/src/greptimedb_worker.erl @@ -51,7 +51,7 @@ init(Args) -> logger:debug("[GreptimeDB] genserver has started (~w)~n", [self()]), Endpoints = proplists:get_value(endpoints, Args), SslOptions = proplists:get_value(ssl_opts, Args, []), - Options = proplists:get_value(grpc_options, Args, #{connect_timeout => ?CONNECT_TIMEOUT}), + Options = proplists:get_value(grpc_opts, Args, #{connect_timeout => ?CONNECT_TIMEOUT}), Channels = lists:map(fun({Scheme, Host, Port}) -> {Scheme, Host, Port, ssl_options(Scheme, SslOptions)} end, Endpoints),