Skip to content

Commit

Permalink
Merge branch 'main' into invite
Browse files Browse the repository at this point in the history
  • Loading branch information
devonh committed Jul 5, 2023
2 parents 178f53e + 5a87c70 commit d53e14a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions roomserver/internal/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func (r *RoomserverInternalAPI) SetFederationAPI(fsAPI fsAPI.RoomserverFederatio
KeyRing: keyRing,
ACLs: r.ServerACLs,
Queryer: r.Queryer,
EnableMetrics: r.enableMetrics,
}
r.Inviter = &perform.Inviter{
DB: r.DB,
Expand Down
4 changes: 2 additions & 2 deletions roomserver/internal/input/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ type Inputer struct {

Queryer *query.Queryer
UserAPI userapi.RoomserverUserAPI
enableMetrics bool
EnableMetrics bool
}

// If a room consumer is inactive for a while then we will allow NATS
Expand Down Expand Up @@ -178,7 +178,7 @@ func (r *Inputer) startWorkerForRoom(roomID string) {
// will look to see if we have a worker for that room which has its
// own consumer. If we don't, we'll start one.
func (r *Inputer) Start() error {
if r.enableMetrics {
if r.EnableMetrics {
prometheus.MustRegister(roomserverInputBackpressure, processRoomEventDuration)
}
_, err := r.JetStream.Subscribe(
Expand Down

0 comments on commit d53e14a

Please sign in to comment.