improve comment
authorJoey Hess <joeyh@joeyh.name>
Fri, 26 Jul 2024 16:48:47 +0000 (12:48 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 26 Jul 2024 16:48:47 +0000 (12:48 -0400)
P2P/Protocol.hs

index 89fe9aad93c575ab26997460d11ac9685d6c11d6..eccca1fef715c72080813deced3b8a83fed9ab58 100644 (file)
@@ -261,9 +261,9 @@ data NetF c
        -- ^ Sends exactly Len bytes of data. (Any more or less will
        -- confuse the receiver.)
        | ReceiveBytes Len MeterUpdate (L.ByteString -> c)
-       -- ^ Lazily reads bytes from peer. Stops once Len are read,
-       -- or if connection is lost, and in either case returns the bytes
-       -- that were read. This allows resuming interrupted transfers.
+       -- ^ Streams bytes from peer. Stops once Len are read,
+       -- or if connection is lost. This allows resuming
+       -- interrupted transfers.
        | CheckAuthToken UUID AuthToken (Bool -> c)
        | RelayService Service c
        -- ^ Runs a service, relays its output to the peer, and data