Skip to content
Snippets Groups Projects
Commit 8cae9265 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Shorten this one long line to help readability

parent 98737820
No related branches found
No related tags found
1 merge request!9Call an API from tahoe-chk as a demonstration that we can
......@@ -40,10 +40,17 @@ frontend = Frontend
let plaintext :: LBS.ByteString
plaintext = "Hello world!"
params = Parameters
{ paramSegmentSize = 64
, paramRequiredShares = 7
, paramHappyShares = 1
, paramTotalShares = 11
}
-- Once the page is built create an object to be uploaded.
uploadableEv <- performEvent $ ffor pageLoaded $ \_ ->
liftIO $
memoryUploadableWithConvergence "secret" (fromIntegral $ LBS.length plaintext) plaintext (Parameters { paramSegmentSize = 64, paramRequiredShares = 7, paramHappyShares = 1, paramTotalShares = 11 })
memoryUploadableWithConvergence "secret" (fromIntegral $ LBS.length plaintext) plaintext params
-- Once the page is built create some servers to upload to.
-- serversEv <- performEvent $ ffor pageLoaded $ \_ ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment