cli: fix lint errors for /ci/migrate/util.go (#5912)

https://github.com/hasura/graphql-engine/pull/5912
This commit is contained in:
Amarnath Karthi 2020-10-29 12:38:12 +05:30 committed by GitHub
parent fd36bd1492
commit d6d0b99a3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,10 @@
package migrate
import (
"bufio"
"fmt"
"io"
nurl "net/url"
"runtime"
"strings"
"time"
crontriggers "github.com/hasura/graphql-engine/cli/metadata/cron_triggers"
@ -62,6 +59,7 @@ func suint64(n int64) uint64 {
return uint64(n)
}
/*
// newSlowReader turns an io.ReadCloser into a slow io.ReadCloser.
// Use this to simulate a slow internet connection.
func newSlowReader(r io.ReadCloser) io.ReadCloser {
@ -89,7 +87,7 @@ func (b *slowReader) Read(p []byte) (n int, err error) {
func (b *slowReader) Close() error {
return b.rx.Close()
}
} */
var errNoScheme = fmt.Errorf("no scheme")