Skip to content

Commit 5cc141e

Browse files
author
Adib Rastegarnia
authored
Add created/updated timestamps to map Put return Entry (#12)
1 parent 6fd69e6 commit 5cc141e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/client/map/partition.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ func (m *mapPartition) Put(ctx context.Context, key string, value []byte, opts .
8686
Key: key,
8787
Value: value,
8888
Version: int64(response.Header.Index),
89+
Created: response.Created,
90+
Updated: response.Updated,
8991
}, nil
9092
} else if response.Status == api.ResponseStatus_PRECONDITION_FAILED {
9193
return nil, errors.New("write condition failed")

0 commit comments

Comments
 (0)