WTF hash match not do the match thing lol

This commit is contained in:
pigwin
2025-01-09 19:06:51 +00:00
parent fe72a507e1
commit 083a267b2a
2 changed files with 2 additions and 2 deletions

View File

@@ -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
} }
} }

View File

@@ -9,6 +9,7 @@ import (
) )
func main() { func main() {
log.Println("ti1 v0.1.2 - 09.01...")
log.Println("Starting...") log.Println("Starting...")
// Setup the database // Setup the database