mirror of
https://github.com/restic/restic.git
synced 2025-10-29 12:30:03 +00:00
Update vendored library cloud.google.com/go
This commit is contained in:
7
vendor/cloud.google.com/go/pubsub/message.go
generated
vendored
7
vendor/cloud.google.com/go/pubsub/message.go
generated
vendored
@@ -43,13 +43,16 @@ type Message struct {
|
||||
// This field is read-only.
|
||||
PublishTime time.Time
|
||||
|
||||
// receiveTime is the time the message was received by the client.
|
||||
receiveTime time.Time
|
||||
|
||||
// size is the approximate size of the message's data and attributes.
|
||||
size int
|
||||
|
||||
calledDone bool
|
||||
|
||||
// The done method of the iterator that created this Message.
|
||||
doneFunc func(string, bool)
|
||||
doneFunc func(string, bool, time.Time)
|
||||
}
|
||||
|
||||
func toMessage(resp *pb.ReceivedMessage) (*Message, error) {
|
||||
@@ -93,5 +96,5 @@ func (m *Message) done(ack bool) {
|
||||
return
|
||||
}
|
||||
m.calledDone = true
|
||||
m.doneFunc(m.ackID, ack)
|
||||
m.doneFunc(m.ackID, ack, m.receiveTime)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user