This commit is contained in:
Neil Alexander 2022-02-02 16:40:59 +00:00
parent 436f07e79d
commit 885c70c31c
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 4 additions and 5 deletions

View file

@ -24,7 +24,7 @@ import (
"github.com/matrix-org/gomatrixserverlib"
)
type checkForSoftFailStorage interface {
type checkForAuthAndSoftFailStorage interface {
state.StateResolutionStorage
StateEntriesForEventIDs(ctx context.Context, eventIDs []string) ([]types.StateEntry, error)
RoomInfo(ctx context.Context, roomID string) (*types.RoomInfo, error)
@ -35,7 +35,7 @@ type checkForSoftFailStorage interface {
// the soft-fail bool.
func CheckForSoftFail(
ctx context.Context,
db checkForSoftFailStorage,
db checkForAuthAndSoftFailStorage,
event *gomatrixserverlib.HeaderedEvent,
stateEventIDs []string,
) (bool, error) {
@ -97,7 +97,7 @@ func CheckForSoftFail(
// Returns the numeric IDs for the auth events.
func CheckAuthEvents(
ctx context.Context,
db checkForSoftFailStorage,
db checkForAuthAndSoftFailStorage,
event *gomatrixserverlib.HeaderedEvent,
authEventIDs []string,
) ([]types.EventNID, error) {

View file

@ -18,8 +18,7 @@ import (
)
type missingStateReq struct {
origin gomatrixserverlib.ServerName
//db storage.Database
origin gomatrixserverlib.ServerName
db *shared.RoomUpdater
inputer *Inputer
queryer *query.Queryer