Print outliers

This commit is contained in:
Neil Alexander 2020-04-20 09:42:29 +01:00
parent 6fb7b203dc
commit 23896d6aa8
3 changed files with 9 additions and 1 deletions

View file

@ -16,6 +16,7 @@ package producers
import (
"context"
"fmt"
"github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/gomatrixserverlib"
@ -63,6 +64,11 @@ func (c *RoomserverProducer) SendEventWithState(
return err
}
fmt.Println("OUTLIERS")
for _, v := range outliers {
fmt.Println("*", v.EventID(), v.Type())
}
var ires []api.InputRoomEvent
for _, outlier := range outliers {
ires = append(ires, api.InputRoomEvent{

2
go.mod
View file

@ -17,7 +17,7 @@ require (
github.com/matrix-org/go-http-js-libp2p v0.0.0-20200318135427-31631a9ef51f
github.com/matrix-org/go-sqlite3-js v0.0.0-20200325174927-327088cdef10
github.com/matrix-org/gomatrix v0.0.0-20190528120928-7df988a63f26
github.com/matrix-org/gomatrixserverlib v0.0.0-20200417160439-0126eeb08bd3
github.com/matrix-org/gomatrixserverlib v0.0.0-20200420082856-48fd53af1ef3
github.com/matrix-org/naffka v0.0.0-20200127221512-0716baaabaf1
github.com/matrix-org/util v0.0.0-20190711121626-527ce5ddefc7
github.com/mattn/go-sqlite3 v2.0.3+incompatible

2
go.sum
View file

@ -368,6 +368,8 @@ github.com/matrix-org/gomatrixserverlib v0.0.0-20200417154207-c38787065567 h1:Ij
github.com/matrix-org/gomatrixserverlib v0.0.0-20200417154207-c38787065567/go.mod h1:FsKa2pWE/bpQql9H7U4boOPXFoJX/QcqaZZ6ijLkaZI=
github.com/matrix-org/gomatrixserverlib v0.0.0-20200417160439-0126eeb08bd3 h1:EPRJl/W97StNSCA5DEI45qDph0DPWALE//ScKOvLsis=
github.com/matrix-org/gomatrixserverlib v0.0.0-20200417160439-0126eeb08bd3/go.mod h1:FsKa2pWE/bpQql9H7U4boOPXFoJX/QcqaZZ6ijLkaZI=
github.com/matrix-org/gomatrixserverlib v0.0.0-20200420082856-48fd53af1ef3 h1:KF+y+1PDm9nGdkZRFeFuPYrd+bstxJwH3499Xvs3qe4=
github.com/matrix-org/gomatrixserverlib v0.0.0-20200420082856-48fd53af1ef3/go.mod h1:FsKa2pWE/bpQql9H7U4boOPXFoJX/QcqaZZ6ijLkaZI=
github.com/matrix-org/naffka v0.0.0-20200127221512-0716baaabaf1 h1:osLoFdOy+ChQqVUn2PeTDETFftVkl4w9t/OW18g3lnk=
github.com/matrix-org/naffka v0.0.0-20200127221512-0716baaabaf1/go.mod h1:cXoYQIENbdWIQHt1SyCo6Bl3C3raHwJ0wgVrXHSqf+A=
github.com/matrix-org/util v0.0.0-20171127121716-2e2df66af2f5 h1:W7l5CP4V7wPyPb4tYE11dbmeAOwtFQBTW0rf4OonOS8=