fix: build the stalled-download message from the timeout
The message hard-coded "30 seconds" next to the stallTimeout constant: change one and the other lied.
This commit is contained in:
1 parent
e85d0ba7e9
commit
343836df6b
1 file changed
+1
-1
+1
-1
@@ -35,7 +35,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// errStalled aborts a download that receives nothing for stallTimeout.
|
// errStalled aborts a download that receives nothing for stallTimeout.
|
||||||
var errStalled = errors.New("the download stalled (no data received for 30 seconds)")
|
var errStalled = fmt.Errorf("the download stalled (no data received for %s)", stallTimeout)
|
||||||
|
|
||||||
var modelFiles = []marian.RemoteFile{
|
var modelFiles = []marian.RemoteFile{
|
||||||
{Name: "config.json", Size: 1416, SHA256: "b3be13d046d9899d7aab8cf4ed624d9a79f5776038ba793f6b4d2ce3e02192f7"},
|
{Name: "config.json", Size: 1416, SHA256: "b3be13d046d9899d7aab8cf4ed624d9a79f5776038ba793f6b4d2ce3e02192f7"},
|
||||||
|
|||||||
Reference in new issue
Block a user