( ctx context.Context, s gomatrixserverlib.ServerName, roomID, eventID string, roomVersion gomatrixserverlib.RoomVersion, )
| 80 | } |
| 81 | |
| 82 | func (a *FederationInternalAPI) LookupState( |
| 83 | ctx context.Context, s gomatrixserverlib.ServerName, roomID, eventID string, roomVersion gomatrixserverlib.RoomVersion, |
| 84 | ) (res gomatrixserverlib.RespState, err error) { |
| 85 | ctx, cancel := context.WithTimeout(ctx, time.Second*30) |
| 86 | defer cancel() |
| 87 | ires, err := a.doRequestIfNotBlacklisted(s, func() (interface{}, error) { |
| 88 | return a.federation.LookupState(ctx, s, roomID, eventID, roomVersion) |
| 89 | }) |
| 90 | if err != nil { |
| 91 | return gomatrixserverlib.RespState{}, err |
| 92 | } |
| 93 | return ires.(gomatrixserverlib.RespState), nil |
| 94 | } |
| 95 | |
| 96 | func (a *FederationInternalAPI) LookupStateIDs( |
| 97 | ctx context.Context, s gomatrixserverlib.ServerName, roomID, eventID string, |
nothing calls this directly
no test coverage detected