diff options
Diffstat (limited to 'shard/lib/manager.ex')
-rw-r--r-- | shard/lib/manager.ex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shard/lib/manager.ex b/shard/lib/manager.ex index 08e14c7..1e089ba 100644 --- a/shard/lib/manager.ex +++ b/shard/lib/manager.ex @@ -315,4 +315,8 @@ defmodule Shard.Manager do def list_connections() do for [x] <- :ets.match(:connections, :"$1"), do: x end + + def get_connections_to(peer_info) do + for {^peer_info, pid, auth} <- :ets.lookup(:connections, peer_info), do: {pid, auth} + end end |