Skip to content

Commit

Permalink
Rename files
Browse files Browse the repository at this point in the history
  • Loading branch information
bolt12 committed Mar 2, 2023
1 parent eda5af2 commit 8da3492
Show file tree
Hide file tree
Showing 34 changed files with 47 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ import qualified Codec.CBOR.Decoding as CBOR
import qualified Codec.CBOR.Encoding as CBOR
import Control.Monad.Class.MonadMVar (MonadMVar)
import Ouroboros.Consensus.Storage.Serialisation (SerialisedHeader)
import qualified Ouroboros.Network.PeerSelection.PeerSharing.Type as PSTypes
import qualified Ouroboros.Network.PeerSelection.PeerSharing as PSTypes
import Ouroboros.Network.PeerSharing (PeerSharingController,
bracketPeerSharingClient, peerSharingClient,
peerSharingServer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ import Ouroboros.Consensus.Storage.LedgerDB (SnapshotInterval (..),
defaultDiskPolicy)
import Ouroboros.Consensus.Storage.VolatileDB
(BlockValidationPolicy (..))
import Ouroboros.Network.PeerSelection.PeerSharing.Type (PeerSharing,
import Ouroboros.Network.PeerSelection.PeerSharing (PeerSharing,
decodeRemoteAddress, encodeRemoteAddress)
import Ouroboros.Network.Protocol.PeerSharing.Type (PeerSharingAmount)

Expand Down
4 changes: 2 additions & 2 deletions ouroboros-network-api/ouroboros-network-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ library

Ouroboros.Network.PeerSelection.LedgerPeers.Type
Ouroboros.Network.PeerSelection.PeerMetric.Type
Ouroboros.Network.PeerSelection.PeerAdvertise.Type
Ouroboros.Network.PeerSelection.PeerSharing.Type
Ouroboros.Network.PeerSelection.PeerAdvertise
Ouroboros.Network.PeerSelection.PeerSharing
Ouroboros.Network.PeerSelection.RelayAccessPoint
default-language: Haskell2010
build-depends: base >=4.14 && <4.17,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import Ouroboros.Network.CodecCBORTerm
import Ouroboros.Network.Handshake.Acceptable (Accept (..),
Acceptable (..))
import Ouroboros.Network.Magic
import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE DeriveGeneric #-}

module Ouroboros.Network.PeerSelection.PeerAdvertise.Type (PeerAdvertise (..)) where
module Ouroboros.Network.PeerSelection.PeerAdvertise (PeerAdvertise (..)) where

import Data.Aeson
import Data.Bool (bool)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{-# OPTIONS_GHC -Wno-orphans #-}

module Ouroboros.Network.PeerSelection.PeerSharing.Type
module Ouroboros.Network.PeerSelection.PeerSharing
( PeerSharing (..)
, combinePeerInformation
, encodePortNumber
Expand All @@ -18,7 +18,7 @@ import Data.Aeson.Types (FromJSON (..), ToJSON (..), Value (..),
import qualified Data.Text as Text
import GHC.Generics (Generic)
import Network.Socket (PortNumber, SockAddr (..))
import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise (..))
import Text.Read (readMaybe)

Expand Down
2 changes: 1 addition & 1 deletion ouroboros-network-protocols/test-cddl/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ import Ouroboros.Network.Protocol.TxSubmission2.Type (TxSubmission2)
import qualified Ouroboros.Network.Protocol.TxSubmission2.Type as TxSubmission2

import Network.Socket (SockAddr (..))
import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..), decodeRemoteAddress,
encodeRemoteAddress)
import Ouroboros.Network.Protocol.PeerSharing.Codec (codecPeerSharing)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ import Ouroboros.Network.Magic
import Ouroboros.Network.NodeToClient.Version
import Ouroboros.Network.NodeToNode.Version

import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))
import Test.QuickCheck
import Test.Tasty (TestTree, testGroup)
Expand Down
2 changes: 1 addition & 1 deletion ouroboros-network/src/Ouroboros/Network/Diffusion/P2P.hs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ import Ouroboros.Network.PeerSelection.Governor.Types
import Ouroboros.Network.PeerSelection.LedgerPeers
(UseLedgerAfter (..), withLedgerPeers)
import Ouroboros.Network.PeerSelection.PeerMetric (PeerMetrics)
import Ouroboros.Network.PeerSelection.PeerSharing.Type (PeerSharing)
import Ouroboros.Network.PeerSelection.PeerSharing (PeerSharing)
import Ouroboros.Network.PeerSelection.PeerStateActions
(PeerConnectionHandle, PeerSelectionActionsTrace (..),
PeerStateActionsArguments (..), pchPeerSharing,
Expand Down
4 changes: 2 additions & 2 deletions ouroboros-network/src/Ouroboros/Network/NodeToNode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ import Ouroboros.Network.Mux
import Ouroboros.Network.NodeToNode.Version
import Ouroboros.Network.PeerSelection.Governor.Types
(PeerSelectionTargets (..))
import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise (..))
import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))
import Ouroboros.Network.PeerSelection.RootPeersDNS
(DomainAccessPoint (..))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import qualified Ouroboros.Network.PeerSelection.Governor.RootPeers as RootPeers
import Ouroboros.Network.PeerSelection.Governor.Types
import qualified Ouroboros.Network.PeerSelection.KnownPeers as KnownPeers
import Ouroboros.Network.PeerSelection.PeerMetric
import Ouroboros.Network.PeerSelection.PeerSharing.Type (PeerSharing)
import Ouroboros.Network.PeerSelection.PeerSharing (PeerSharing)

{- $overview
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import Ouroboros.Network.PeerSelection.KnownPeers (isKnownLedgerPeer)
import qualified Ouroboros.Network.PeerSelection.KnownPeers as KnownPeers
import Ouroboros.Network.PeerSelection.LedgerPeers (IsLedgerPeer (..))
import qualified Ouroboros.Network.PeerSelection.LocalRootPeers as LocalRootPeers
import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise (..))
import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))
import Ouroboros.Network.Protocol.PeerSharing.Type (PeerSharingAmount)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import Ouroboros.Network.PeerSelection.Governor.Types hiding
import qualified Ouroboros.Network.PeerSelection.KnownPeers as KnownPeers
import Ouroboros.Network.PeerSelection.LedgerPeers (IsLedgerPeer (..))
import qualified Ouroboros.Network.PeerSelection.LocalRootPeers as LocalRootPeers
import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))
import Ouroboros.Network.PeerSelection.Types

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Control.Monad.Class.MonadTime
import Ouroboros.Network.PeerSelection.Governor.Types
import qualified Ouroboros.Network.PeerSelection.KnownPeers as KnownPeers
import qualified Ouroboros.Network.PeerSelection.LocalRootPeers as LocalRootPeers
import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ import qualified Ouroboros.Network.PeerSelection.KnownPeers as KnownPeers
import Ouroboros.Network.PeerSelection.LedgerPeers (IsLedgerPeer)
import Ouroboros.Network.PeerSelection.LocalRootPeers (LocalRootPeers)
import qualified Ouroboros.Network.PeerSelection.LocalRootPeers as LocalRootPeers
import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise)
import Ouroboros.Network.PeerSelection.PeerSharing.Type (PeerSharing)
import Ouroboros.Network.PeerSelection.PeerSharing (PeerSharing)
import Ouroboros.Network.PeerSelection.Types (PeerSource (..),
PeerStatus (PeerHot, PeerWarm))
import Ouroboros.Network.Protocol.PeerSharing.Type (PeerSharingAmount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ import Control.Exception (assert)
import Control.Monad.Class.MonadTime

import Ouroboros.Network.PeerSelection.LedgerPeers (IsLedgerPeer (..))
import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise)
import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..), combinePeerInformation)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import qualified Data.Map.Strict as Map
import Data.Set (Set)
import qualified Data.Set as Set

import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import Ouroboros.Network.Protocol.Handshake (HandshakeException)
import Ouroboros.Network.ConnectionHandler (Handle (..),
HandleError (..), MuxConnectionManager)
import Ouroboros.Network.ConnectionManager.Types
import Ouroboros.Network.PeerSelection.PeerSharing.Type (PeerSharing)
import Ouroboros.Network.PeerSelection.PeerSharing (PeerSharing)
import Ouroboros.Network.PeerSelection.Types (PeerStatus (..))

-- $doc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import qualified Data.IP as IP
import qualified Network.DNS as DNS
import qualified Network.Socket as Socket

import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise)
import Ouroboros.Network.PeerSelection.RelayAccessPoint
import Ouroboros.Network.PeerSelection.RootPeersDNS.DNSActions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import qualified Network.Socket as Socket
import Control.Monad.Class.MonadMVar (MonadMVar (..), takeMVar)
import Ouroboros.Network.PeerSelection.Governor.Types
import Ouroboros.Network.PeerSelection.LedgerPeers
import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise (..))
import Ouroboros.Network.PeerSelection.PeerSharing.Type (PeerSharing)
import Ouroboros.Network.PeerSelection.PeerSharing (PeerSharing)
import Ouroboros.Network.PeerSelection.RootPeersDNS
import Ouroboros.Network.PeerSharing (PeerSharingController (..))
import Ouroboros.Network.Protocol.PeerSharing.Type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ import Ouroboros.Network.Testing.Data.Script (Script (..))
import Simulation.Network.Snocket (AddressType (..), FD)

import Control.Monad.Class.MonadMVar (MonadMVar)
import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise (..))
import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))
import Ouroboros.Network.PeerSharing
(PeerSharingRegistry (PeerSharingRegistry))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ import Control.Monad.Class.MonadMVar (MonadMVar)
import Ouroboros.Network.NodeToNode (blockFetchMiniProtocolNum,
chainSyncMiniProtocolNum, keepAliveMiniProtocolNum,
peerSharingMiniProtocolNum)
import qualified Ouroboros.Network.PeerSelection.PeerSharing.Type as PSTypes
import qualified Ouroboros.Network.PeerSelection.PeerSharing as PSTypes
import Ouroboros.Network.PeerSharing (bracketPeerSharingClient,
peerSharingClient, peerSharingServer)
import Ouroboros.Network.Protocol.PeerSharing.Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import Test.Ouroboros.Network.Orphans ()
import qualified Codec.CBOR.Decoding as CBOR
import qualified Codec.CBOR.Encoding as CBOR
import Ouroboros.Network.NodeToNode ()
import Ouroboros.Network.PeerSelection.PeerSharing.Type (PeerSharing)
import Ouroboros.Network.PeerSelection.PeerSharing (PeerSharing)
import Ouroboros.Network.PeerSharing (PeerSharingRegistry (..),
newPeerSharingRegistry)
import Test.QuickCheck (Arbitrary (..), choose, chooseInt, frequency,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Ouroboros.Network.CodecCBORTerm
import Ouroboros.Network.Magic
import Ouroboros.Network.NodeToNode.Version

import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))
import Test.QuickCheck
import Test.Tasty (TestTree, testGroup)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ import Test.Ouroboros.Network.PeerSelection.PeerGraph

import Control.Concurrent.Class.MonadSTM.Strict (newTVarIO)
import Ouroboros.Network.PeerSelection.LedgerPeers (IsLedgerPeer (..))
import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise (..))
import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))
import Ouroboros.Network.Protocol.PeerSharing.Type
(PeerSharingResult (..))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import Ouroboros.Network.PeerSelection.RootPeersDNS
(DomainAccessPoint (..), RelayAccessPoint (..))

import qualified Data.IP as IP
import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise (..))
import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))
import Ouroboros.Network.Testing.Utils (prop_shrink_nonequal,
prop_shrink_valid)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Ouroboros.Network.PeerSelection.RootPeersDNS
(DomainAccessPoint (..), RelayAccessPoint (..))
import Test.Ouroboros.Network.PeerSelection.Instances ()

import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise)
import Test.QuickCheck
import Test.Tasty (TestTree, testGroup)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import Ouroboros.Network.Testing.Utils (prop_shrink_nonequal,
import Test.Ouroboros.Network.PeerSelection.Instances


import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise)
import Test.QuickCheck
import Test.Tasty (TestTree, testGroup)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ import Test.Ouroboros.Network.PeerSelection.PeerGraph
import Test.Ouroboros.Network.ShrinkCarefully

import Ouroboros.Network.PeerSelection.LedgerPeers (IsLedgerPeer)
import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise)
import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))
import Ouroboros.Network.PeerSelection.Types (PeerStatus (..))
import Ouroboros.Network.Protocol.PeerSharing.Type (PeerSharingAmount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import Ouroboros.Network.Testing.Utils (prop_shrink_nonequal,
import Test.Ouroboros.Network.PeerSelection.Instances
import Test.Ouroboros.Network.ShrinkCarefully

import Ouroboros.Network.PeerSelection.PeerSharing.Type (PeerSharing)
import Ouroboros.Network.PeerSelection.PeerSharing (PeerSharing)
import Test.QuickCheck


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import qualified Control.Monad.Class.MonadTimer as MonadTimer
import Control.Monad.IOSim
import Control.Tracer (Tracer (Tracer), contramap)

import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise (..))
import Ouroboros.Network.Testing.Data.Script (NonEmpty ((:|)),
Script (Script), initScript', scriptHead, singletonScript,
Expand Down
4 changes: 2 additions & 2 deletions ouroboros-network/test/Test/Ouroboros/Network/Testnet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ import Test.Tasty
import Test.Tasty.QuickCheck (testProperty)

import Ouroboros.Network.NodeToNode (DiffusionMode (..))
import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise (..))
import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))
import TestLib.ConnectionManager (abstractStateIsFinalTransition,
connectionManagerTraceMap, validTransitionMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ import Test.Ouroboros.Network.PeerSelection.RootPeersDNS
(DNSLookupDelay (..), DNSTimeout (..))

import Control.Monad.Class.MonadMVar (MonadMVar)
import Ouroboros.Network.PeerSelection.PeerAdvertise.Type
import Ouroboros.Network.PeerSelection.PeerAdvertise
(PeerAdvertise (..))
import Ouroboros.Network.PeerSelection.PeerSharing.Type (PeerSharing)
import Ouroboros.Network.PeerSelection.PeerSharing (PeerSharing)
import Ouroboros.Network.Protocol.PeerSharing.Codec
(byteLimitsPeerSharing, timeLimitsPeerSharing)
import Test.QuickCheck
Expand Down
2 changes: 1 addition & 1 deletion ouroboros-network/test/Test/Socket.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import Ouroboros.Network.Util.ShowProxy

import Test.ChainGenerators (TestBlockChainAndUpdates (..))

import Ouroboros.Network.PeerSelection.PeerSharing.Type
import Ouroboros.Network.PeerSelection.PeerSharing
(PeerSharing (..))
import Test.QuickCheck
import Test.Tasty (TestTree, testGroup)
Expand Down

0 comments on commit 8da3492

Please sign in to comment.