Skip to content
Snippets Groups Projects

16 refactor deprecated functions

Merged Olgun Cengiz requested to merge 16-refactor-deprecated-functions into master
All threads resolved!
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -46,8 +46,8 @@ func GenerateUnusedUUID(client *client.DataStorageClientImpl) (string, error) {
// check that uuid is not used
key := &api.Key{}
hasData, errorsString, err := client.GetData("keys", uuid+"/"+api.KeyType.String(api.KeyType_PRIVATE), key)
if err != nil && errorsString != "" && !hasData {
hasData, _, err := client.GetData("keys", uuid+"/"+api.KeyType.String(api.KeyType_PRIVATE), key)
if err != nil || !hasData {
return uuid, nil
}
if count >= 10 {
Loading