Skip to content

Commit

Permalink
Minor fix to api.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed Aug 8, 2022
1 parent f5373b9 commit a73ac4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hydra-node/json-schemas/api.yaml
Expand Up @@ -566,7 +566,7 @@ components:
peers:
type: array
items:
$ref: "api.yaml#/components/schemas/Peer"
$ref: "#/components/schemas/Peer"

CommandFailed:
title: CommandFailed
Expand Down
6 changes: 4 additions & 2 deletions hydra-node/src/Hydra/Network.hs
Expand Up @@ -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 ()
}

Expand Down

0 comments on commit a73ac4c

Please sign in to comment.