summaryrefslogtreecommitdiffhomepage
path: root/HTTP/Client.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-10-06 13:54:52 -0400
committerJoey Hess <joeyh@joeyh.name>2016-10-06 13:54:52 -0400
commitb40d441c52f37584653e74fada9906cc8105c9f7 (patch)
tree737396d6ab61212cad52555c7bc99dedd167b330 /HTTP/Client.hs
parent54d3bfbb98958cb49399f1a7f092fa43593ef4c8 (diff)
downloadkeysafe-b40d441c52f37584653e74fada9906cc8105c9f7.tar.gz
move level from Server to Storage
This allows local storage locations to have levels too, and also get shuffled nicely. This commit was sponsored by Ethan Aubin.
Diffstat (limited to 'HTTP/Client.hs')
-rw-r--r--HTTP/Client.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/HTTP/Client.hs b/HTTP/Client.hs
index 50c5906..8415b2f 100644
--- a/HTTP/Client.hs
+++ b/HTTP/Client.hs
@@ -9,7 +9,6 @@ import HTTP
import HTTP.ProofOfWork
import Types
import Types.Server
-import Servers
import Types.Storage
import Types.Cost
import Servant.API
@@ -111,3 +110,8 @@ socketConnection socket chunksize = makeConnection
(recv socket chunksize)
(sendAll socket)
(Network.Socket.close socket)
+
+serverUrls :: Server -> [BaseUrl]
+serverUrls srv = map go (serverAddress srv)
+ where
+ go (ServerAddress addr port) = BaseUrl Http addr port ""