aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTill Faelligen <davidf@element.io>2022-06-13 11:46:59 +0200
committerTill Faelligen <davidf@element.io>2022-06-13 11:46:59 +0200
commite1136f4d3e372f9c0b8a309a387193621a53ae6d (patch)
treea8200c1cd3118b5f32b9e07e588fc6bc8c4ac439 /cmd
parent0a7f7dc716a25b1071bacc16cb91b31441174453 (diff)
Make the linter happy again
Diffstat (limited to 'cmd')
-rw-r--r--cmd/resolve-state/main.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd/resolve-state/main.go b/cmd/resolve-state/main.go
index da0f70f0..c0214000 100644
--- a/cmd/resolve-state/main.go
+++ b/cmd/resolve-state/main.go
@@ -38,6 +38,7 @@ func main() {
Type: "std",
Level: "error",
})
+ cfg.ClientAPI.RegistrationDisabled = true
base := base.NewBaseDendrite(cfg, "ResolveState", base.DisableMetrics)
args := flag.Args()
@@ -70,8 +71,8 @@ func main() {
if len(snapshotNIDs) != 2 {
panic("need exactly two state snapshot NIDs to calculate difference")
}
-
- removed, added, err := stateres.DifferenceBetweeenStateSnapshots(ctx, snapshotNIDs[0], snapshotNIDs[1])
+ var removed, added []types.StateEntry
+ removed, added, err = stateres.DifferenceBetweeenStateSnapshots(ctx, snapshotNIDs[0], snapshotNIDs[1])
if err != nil {
panic(err)
}
@@ -81,7 +82,8 @@ func main() {
eventNIDs = append(eventNIDs, entry.EventNID)
}
- eventEntries, err := roomserverDB.Events(ctx, eventNIDs)
+ var eventEntries []types.Event
+ eventEntries, err = roomserverDB.Events(ctx, eventNIDs)
if err != nil {
panic(err)
}