cmd/stdiscosrv: Add AMQP replication

This commit is contained in:
Jakob Borg
2024-06-03 19:50:28 +02:00
parent 495809ac9e
commit f283215fce
7 changed files with 293 additions and 34 deletions
+2 -1
View File
@@ -144,10 +144,11 @@ func (s *replicationSender) String() string {
return fmt.Sprintf("replicationSender(%q)", s.dst)
}
func (s *replicationSender) send(key string, ps []DatabaseAddress, _ int64) {
func (s *replicationSender) send(key string, ps []DatabaseAddress, seen int64) {
item := ReplicationRecord{
Key: key,
Addresses: ps,
Seen: seen,
}
// The send should never block. The inbox is suitably buffered for at