mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-03-29 09:40:22 +00:00
fix: InsertTransmission returns 2 values — handle isNew at all call sites
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -332,7 +332,7 @@ func handleMessage(store *Store, tag string, source MQTTSource, m mqtt.Message,
|
||||
DecodedJSON: string(decodedJSON),
|
||||
}
|
||||
|
||||
if err := store.InsertTransmission(pktData); err != nil {
|
||||
if _, err := store.InsertTransmission(pktData); err != nil {
|
||||
log.Printf("MQTT [%s] channel insert error: %v", tag, err)
|
||||
}
|
||||
|
||||
@@ -409,7 +409,7 @@ func handleMessage(store *Store, tag string, source MQTTSource, m mqtt.Message,
|
||||
DecodedJSON: string(decodedJSON),
|
||||
}
|
||||
|
||||
if err := store.InsertTransmission(pktData); err != nil {
|
||||
if _, err := store.InsertTransmission(pktData); err != nil {
|
||||
log.Printf("MQTT [%s] DM insert error: %v", tag, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user