Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
96d7a48d
Commit
96d7a48d
authored
2 years ago
by
David Stainton
Browse files
Options
Downloads
Patches
Plain Diff
Fix kv API, add Exists method
parent
9e2fe243
No related branches found
No related tags found
2 merge requests
!510
Release
,
!347
Fix kv API, add Exists method
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
storage/versioned/kv.go
+6
-0
6 additions, 0 deletions
storage/versioned/kv.go
with
6 additions
and
0 deletions
storage/versioned/kv.go
+
6
−
0
View file @
96d7a48d
...
@@ -164,3 +164,9 @@ func (v *KV) GetFullKey(key string, version uint64) string {
...
@@ -164,3 +164,9 @@ func (v *KV) GetFullKey(key string, version uint64) string {
func
(
v
*
KV
)
makeKey
(
key
string
,
version
uint64
)
string
{
func
(
v
*
KV
)
makeKey
(
key
string
,
version
uint64
)
string
{
return
fmt
.
Sprintf
(
"%s%s_%d"
,
v
.
prefix
,
key
,
version
)
return
fmt
.
Sprintf
(
"%s%s_%d"
,
v
.
prefix
,
key
,
version
)
}
}
// Exists returns false if the error indicates the element doesn't
// exist.
func
(
v
*
KV
)
Exists
(
err
Error
)
bool
{
return
ekv
.
Exists
(
err
)
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment