MCPcopy Create free account
hub / github.com/daodst/chat / Backfill

Method Backfill

federationapi/internal/federationclient.go:68–80  ·  view source on GitHub ↗
(
	ctx context.Context, s gomatrixserverlib.ServerName, roomID string, limit int, eventIDs []string,
)

Source from the content-addressed store, hash-verified

66}
67
68func (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
82func (a *FederationInternalAPI) LookupState(
83 ctx context.Context, s gomatrixserverlib.ServerName, roomID, eventID string, roomVersion gomatrixserverlib.RoomVersion,

Callers

nothing calls this directly

Calls 2

BackfillMethod · 0.65

Tested by

no test coverage detected