mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
delete ErrorTimeout() function and modify Umask() args
ErrorTimeout is never used
This commit is contained in:
parent
4ac5f278c5
commit
ad1f0d30e0
@ -20,7 +20,6 @@ import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/codes"
|
||||
@ -30,10 +29,6 @@ func ErrorStreamingDisabled(method string) error {
|
||||
return grpc.Errorf(codes.NotFound, fmt.Sprintf("streaming method %s disabled", method))
|
||||
}
|
||||
|
||||
func ErrorTimeout(op string, timeout time.Duration) error {
|
||||
return grpc.Errorf(codes.DeadlineExceeded, fmt.Sprintf("%s timed out after %s", op, timeout.String()))
|
||||
}
|
||||
|
||||
// The error returned when the maximum number of in-flight requests is exceeded.
|
||||
func ErrorTooManyInFlight() error {
|
||||
return grpc.Errorf(codes.ResourceExhausted, "maximum number of in-flight requests exceeded")
|
||||
|
@ -22,6 +22,6 @@ import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
func Umask(mask int) (old int, err error) {
|
||||
func Umask(mask int) (int, error) {
|
||||
return 0, errors.New("platform and architecture is not supported")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user