Added comment line for checking

This commit is contained in:
jothi
2025-07-30 04:59:36 +00:00
parent 3fd408d3ee
commit dbcb05d017

View File

@@ -99,7 +99,7 @@ func messageHandler(client mqtt.Client, msg mqtt.Message) {
return
}
// Check for duplicates
// Check for duplicates keys
var exists int
existsQuery := `SELECT 1 FROM temp_live_readings WHERE created_at = $1 AND mfm_meter_id = $2 LIMIT 1`
err = db.QueryRow(existsQuery, payload.CreatedAt, mfmMeterID).Scan(&exists)
@@ -301,3 +301,5 @@ func main() {
sigChan := make(chan os.Signal, 1)
<-sigChan
}