Skip to content

Commit

Permalink
chore: rename grpc_options to grpc_opts
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 committed Mar 22, 2024
1 parent f17117e commit acbfca4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion src/greptimedb_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit acbfca4

Please sign in to comment.