Skip to content

Commit

Permalink
Make the linter happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
S7evinK committed Jun 13, 2022
1 parent 0a7f7dc commit e1136f4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/resolve-state/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func main() {
Type: "std",
Level: "error",
})
cfg.ClientAPI.RegistrationDisabled = true
base := base.NewBaseDendrite(cfg, "ResolveState", base.DisableMetrics)
args := flag.Args()

Expand Down Expand Up @@ -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)
}
Expand All @@ -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)
}
Expand Down

0 comments on commit e1136f4

Please sign in to comment.