Switch to non-deprecated timestamppb.Now()

This commit is contained in:
Jordan Liggitt 2021-03-24 00:58:15 -04:00
parent 1134456c89
commit ff2c614245

View File

@ -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 (
@ -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,