( ctx context.Context, s gomatrixserverlib.ServerName, roomID string, limit int, eventIDs []string, )
| 66 | } |
| 67 | |
| 68 | func (a *FederationInternalAPI) Backfill( |
| 69 | ctx context.Context, s gomatrixserverlib.ServerName, roomID string, limit int, eventIDs []string, |
| 70 | ) (res gomatrixserverlib.Transaction, err error) { |
| 71 | ctx, cancel := context.WithTimeout(ctx, time.Second*30) |
| 72 | defer cancel() |
| 73 | ires, err := a.doRequestIfNotBlacklisted(s, func() (interface{}, error) { |
| 74 | return a.federation.Backfill(ctx, s, roomID, limit, eventIDs) |
| 75 | }) |
| 76 | if err != nil { |
| 77 | return gomatrixserverlib.Transaction{}, err |
| 78 | } |
| 79 | return ires.(gomatrixserverlib.Transaction), nil |
| 80 | } |
| 81 | |
| 82 | func (a *FederationInternalAPI) LookupState( |
| 83 | ctx context.Context, s gomatrixserverlib.ServerName, roomID, eventID string, roomVersion gomatrixserverlib.RoomVersion, |
nothing calls this directly
no test coverage detected