Skip to content
go-libfossil Artifact [3eec13beac]
Login

Artifact [3eec13beac]

Artifact 3eec13beac3473f0070c8ea47c7882adbb9fac965372792491048985a57a0648:


//go:build tinygo

package sync

import "errors"

// errStopRedirect: TinyGo's net/http has no ErrUseLastResponse, so a redirect
// ends the request with this error rather than being followed. A TinyGo
// build normally syncs through a transport its host supplies, not PostXfer.
var errStopRedirect = errors.New("sync: redirect not followed under TinyGo")

// dnsFault: TinyGo's net package has no DNSError, so no failure is classified
// as name resolution; the other network checks still apply.
func dnsFault(error) (transient, ok bool) { return false, false }