From a73ac4c9a454340d8f4a0a3343887e2710fc0b2c Mon Sep 17 00:00:00 2001 From: Franco Testagrossa Date: Mon, 8 Aug 2022 12:23:53 +0200 Subject: [PATCH] Minor fix to api.yaml --- hydra-node/json-schemas/api.yaml | 2 +- hydra-node/src/Hydra/Network.hs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hydra-node/json-schemas/api.yaml b/hydra-node/json-schemas/api.yaml index 79a01bb2253..2479d2a81e4 100644 --- a/hydra-node/json-schemas/api.yaml +++ b/hydra-node/json-schemas/api.yaml @@ -566,7 +566,7 @@ components: peers: type: array items: - $ref: "api.yaml#/components/schemas/Peer" + $ref: "#/components/schemas/Peer" CommandFailed: title: CommandFailed diff --git a/hydra-node/src/Hydra/Network.hs b/hydra-node/src/Hydra/Network.hs index 3336ce76952..9fe2afae194 100644 --- a/hydra-node/src/Hydra/Network.hs +++ b/hydra-node/src/Hydra/Network.hs @@ -42,8 +42,10 @@ import Text.Show (Show (show)) data Network m msg = Network { -- | Send a `msg` to the whole hydra network. broadcast :: msg -> m () - , -- | Returns the list of connected peers in the whole hydra network. - getPeers :: [Host] + -- | Returns the list of connected peers in the hydra network. + , getPeers :: [Host] + -- | Modify the list of peers in the hydra network, + -- causing the network to reinitialize and reconnect to the new list of peers. , setPeers :: [Host] -> m () }