From 083a267b2a09979cbd4cb9fe2c538d5b4e603ace Mon Sep 17 00:00:00 2001 From: pigwin Date: Thu, 9 Jan 2025 19:06:51 +0000 Subject: [PATCH] WTF hash match not do the match thing lol --- database/EstimatedCall.go | 3 +-- main.go | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/EstimatedCall.go b/database/EstimatedCall.go index 84a4508..691ab11 100644 --- a/database/EstimatedCall.go +++ b/database/EstimatedCall.go @@ -42,7 +42,6 @@ func InsertOrUpdateEstimatedCall(ctx context.Context, db *sql.DB, values []inter if err != nil { 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 if retrievedHash != hashString { @@ -84,7 +83,7 @@ func InsertOrUpdateEstimatedCall(ctx context.Context, db *sql.DB, values []inter } return id, action, nil } else { - fmt.Println("Hashes match") + fmt.Printf("MATCH!!! Original Hash: %s, Retrieved Hash: %s\n", hashString, retrievedHash) return 0, "no update", nil } } diff --git a/main.go b/main.go index fbff506..f215944 100644 --- a/main.go +++ b/main.go @@ -9,6 +9,7 @@ import ( ) func main() { + log.Println("ti1 v0.1.2 - 09.01...") log.Println("Starting...") // Setup the database