chore(stdiscosrv): remove legacy replication

This commit is contained in:
Jakob Borg
2024-09-13 08:49:13 +02:00
parent 6505e123bb
commit 1616edcee3
4 changed files with 19 additions and 417 deletions
-4
View File
@@ -7,7 +7,6 @@
package main
import (
"bytes"
"context"
"fmt"
"io"
@@ -164,9 +163,6 @@ func (s *amqpReceiver) Serve(ctx context.Context) error {
replicationRecvsTotal.WithLabelValues("error").Inc()
return fmt.Errorf("replication unmarshal: %w", err)
}
if bytes.Equal(rec.Key, []byte("<heartbeat>")) {
continue
}
id, err := protocol.DeviceIDFromBytes(rec.Key)
if err != nil {
id, err = protocol.DeviceIDFromString(string(rec.Key))