From ea23f8dda0323c87e3f051d3f459caadf0cde705 Mon Sep 17 00:00:00 2001 From: Jordan Halterman Date: Thu, 5 Mar 2020 15:24:32 -0800 Subject: [PATCH] Add created/updated timestamps to map Put return Entry --- pkg/client/map/partition.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/client/map/partition.go b/pkg/client/map/partition.go index f3f3cf5..210ea54 100644 --- a/pkg/client/map/partition.go +++ b/pkg/client/map/partition.go @@ -86,6 +86,8 @@ func (m *mapPartition) Put(ctx context.Context, key string, value []byte, opts . Key: key, Value: value, Version: int64(response.Header.Index), + Created: response.Created, + Updated: response.Updated, }, nil } else if response.Status == api.ResponseStatus_PRECONDITION_FAILED { return nil, errors.New("write condition failed")