summaryrefslogtreecommitdiffhomepage
path: root/Types/Server.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-09-26 14:11:32 -0400
committerJoey Hess <joeyh@joeyh.name>2016-09-26 14:15:52 -0400
commita1d5de397cd1b12080e4652965591827e6d50c86 (patch)
treeb2385eb31dba6e130cd2af2bd6b298cb0bc7bc0f /Types/Server.hs
parent2c6a13f5db2671038efbfdcdb9c63f4758bd2e18 (diff)
downloadkeysafe-a1d5de397cd1b12080e4652965591827e6d50c86.tar.gz
Randomize the server list.
May help avoid some correlations. Once there are many servers, will spread the load out amoung them. This commit was sponsored by Ethan Aubin.
Diffstat (limited to 'Types/Server.hs')
-rw-r--r--Types/Server.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Types/Server.hs b/Types/Server.hs
index 7be29ce..785dd24 100644
--- a/Types/Server.hs
+++ b/Types/Server.hs
@@ -28,12 +28,13 @@ instance ToJSON ServerName
instance FromJSON ServerName
data ServerLevel = Recommended | Alternate | Untrusted
- deriving (Show, Eq, Ord)
+ deriving (Show, Eq, Ord, Bounded, Enum)
data Server = Server
{ serverName :: ServerName
, serverLevel :: ServerLevel
, serverAddress :: [ServerAddress]
-- ^ A server may have multiple addresses, or no current address.
+ , serverDesc :: String
}
deriving (Show, Eq, Ord)