Developing lightweight computation at the DSG edge

Commit 0da948dc authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[goclidote] Rename variable according to data type


Signed-off-by: Roger Pueyo Centelles's avatarRoger Pueyo Centelles <rpueyo@ac.upc.edu>
parent 0c436957
......@@ -276,14 +276,14 @@ func AntidoteRemoveRegisterInBucket(bucketName string, registerName string, Data
err = bucket.Update(tx, antidoteclient.RegPut(key, []byte("")))
errCheck(err, ERROR, fmt.Sprintf("[AntidoteRemoveRegisterInBucket]: Unable to set a null value to register %s in bucket %s", registerName, bucketName))
setVal, err := bucket.ReadReg(tx, key)
regVal, err := bucket.ReadReg(tx, key)
errCheck(err, ERROR, fmt.Sprintf("[AntidoteRemoveRegisterInBucket]: Unable to read register %s in bucket %s", registerName, bucketName))
err = tx.Commit()
errCheck(err, ERROR, "[AntidoteRemoveRegisterInBucket]: Unable to commit transaction")
// Return true if the register value is null (0 length)
if len(setVal) == 0 {
if len(regVal) == 0 {
return true
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment