File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ putChunk :: (Monad m, MonadIO m) => Bucket -> ObjectId -> Int -> L.ByteString ->
110
110
putChunk bucket files_id i chunk = do
111
111
insert_ (chunks bucket) [" files_id" =: files_id, " n" =: i, " data" =: Binary (L. toStrict chunk)]
112
112
113
- sourceFile :: (Monad m , MonadIO m ) => File -> Producer (Action m ) S. ByteString
113
+ sourceFile :: (Monad m , MonadIO m ) => File -> ConduitT i S. ByteString (Action m ) ()
114
114
-- ^ A producer for the contents of a file
115
115
sourceFile file = yieldChunk 0 where
116
116
yieldChunk i = do
@@ -179,7 +179,7 @@ writeChunks (FileWriter chunkSize bucket files_id i size acc md5context md5acc)
179
179
putChunk bucket files_id i chunk
180
180
writeChunks (FileWriter chunkSize bucket files_id (i+ 1 ) size' acc' md5context' md5acc') L. empty
181
181
182
- sinkFile :: (Monad m , MonadIO m ) => Bucket -> Text -> Consumer S. ByteString (Action m ) File
182
+ sinkFile :: (Monad m , MonadIO m ) => Bucket -> Text -> ConduitT S. ByteString o (Action m ) File
183
183
-- ^ A consumer that creates a file in the bucket and puts all consumed data in it
184
184
sinkFile bucket filename = do
185
185
files_id <- liftIO $ genObjectId
You can’t perform that action at this time.
0 commit comments