Skip to content

Commit

Permalink
Switch to non-deprecated timestamppb.Now()
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Jun 15, 2021
1 parent 1134456 commit ff2c614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/storage/drivers/csi-test/mock/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"google.golang.org/grpc/codes"
"k8s.io/kubernetes/test/e2e/storage/drivers/csi-test/mock/cache"

"github.com/golang/protobuf/ptypes"
"google.golang.org/protobuf/types/known/timestamppb"
)

const (
Expand Down Expand Up @@ -247,7 +247,7 @@ func (s *service) findVolByID(

func (s *service) newSnapshot(name, sourceVolumeId string, parameters map[string]string) cache.Snapshot {

ptime := ptypes.TimestampNow()
ptime := timestamppb.Now()
return cache.Snapshot{
Name: name,
Parameters: parameters,
Expand Down

0 comments on commit ff2c614

Please sign in to comment.