Nostr.RelayPool (nostr_access v0.3.3)
View SourceManages a pool of connections to a single relay.
Summary
Functions
Checks in a connection after use.
Checks out a connection with a free slot.
Returns a specification to start this module under a supervisor.
Starts a relay pool for the given URI.
Functions
Checks in a connection after use.
@spec checkout_conn(pid()) :: {:ok, pid()} | {:error, :no_slot} | {:error, {:connection_failed, term()}}
Checks out a connection with a free slot.
Returns a specification to start this module under a supervisor.
See Supervisor.
Starts a relay pool for the given URI.