Spaces:
Sleeping
Sleeping
Download test-clone/internal/stream/errors.go from codebydante/BrodyFileStreamBot: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/spaces/codebydante/BrodyFileStreamBot/resolve/e329c12f923b6d5b835f920a352d110f40c12df7/test-clone/internal/stream/errors.go
- Command line
-
hf download hf://spaces/codebydante/BrodyFileStreamBot@e329c12f923b6d5b835f920a352d110f40c12df7/test-clone/internal/stream/errors.go
-
curl -L -o errors.go https://huggingface.co/spaces/codebydante/BrodyFileStreamBot/resolve/e329c12f923b6d5b835f920a352d110f40c12df7/test-clone/internal/stream/errors.go
457 Bytes
| package stream | |
| import "errors" | |
| var ( | |
| // the client disconnected before the stream completed. | |
| ErrStreamClosed = errors.New("stream closed by client") | |
| // a block fetch exceeded the timeout. | |
| ErrBlockTimeout = errors.New("block fetch timed out") | |
| // all retry attempts failed. | |
| ErrMaxRetriesExceeded = errors.New("max retries exceeded") | |
| // the pipe was closed and all data was consumed. | |
| ErrPipeDrained = errors.New("pipe drained") | |
| ) | |