WTF hash match not do the match thing lol
This commit is contained in:
@@ -42,7 +42,6 @@ func InsertOrUpdateEstimatedCall(ctx context.Context, db *sql.DB, values []inter
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, "", fmt.Errorf("failed to get value from Valkey: %v", err)
|
return 0, "", fmt.Errorf("failed to get value from Valkey: %v", err)
|
||||||
}
|
}
|
||||||
fmt.Printf("Original Hash: %s, Retrieved Hash: %s\n", hashString, retrievedHash)
|
|
||||||
|
|
||||||
// Check if the retrieved value matches the original MD5 hash
|
// Check if the retrieved value matches the original MD5 hash
|
||||||
if retrievedHash != hashString {
|
if retrievedHash != hashString {
|
||||||
@@ -84,7 +83,7 @@ func InsertOrUpdateEstimatedCall(ctx context.Context, db *sql.DB, values []inter
|
|||||||
}
|
}
|
||||||
return id, action, nil
|
return id, action, nil
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("Hashes match")
|
fmt.Printf("MATCH!!! Original Hash: %s, Retrieved Hash: %s\n", hashString, retrievedHash)
|
||||||
return 0, "no update", nil
|
return 0, "no update", nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user