pinterest / riffed

Provides idiomatic Elixir bindings for Apache Thrift
Apache License 2.0
308 stars 37 forks source link

How do dynamically connect to new hosts? #15

Closed fire closed 8 years ago

fire commented 8 years ago

The use statement seems to hard code the host and the port. Is it possible to make it dynamic?

fire commented 8 years ago

{:ok, client} = :thrift_client_util.new('localhost', 1234, :some_service_thrift, []) Client.start_link(client)

This is an example of how to start the link dynamically.