2
0

fix typos

This commit is contained in:
sergey.bashilov
2022-06-20 12:15:15 +03:00
committed by Jack Christensen
parent 25935a39b6
commit 1b6543f29c
4 changed files with 19 additions and 23 deletions
+4 -4
View File
@@ -220,19 +220,19 @@ func redactURL(u *url.URL) string {
return u.String()
}
type preferStanbyNotFoundError struct {
type preferStandbyNotFoundError struct {
err error
safeToRetry bool
}
func (e *preferStanbyNotFoundError) Error() string {
func (e *preferStandbyNotFoundError) Error() string {
return fmt.Sprintf("standby server not found: %s", e.err.Error())
}
func (e *preferStanbyNotFoundError) SafeToRetry() bool {
func (e *preferStandbyNotFoundError) SafeToRetry() bool {
return e.safeToRetry
}
func (e *preferStanbyNotFoundError) Unwrap() error {
func (e *preferStandbyNotFoundError) Unwrap() error {
return e.err
}