mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
28 lines
473 B
Go
28 lines
473 B
Go
package streams
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/matrix-org/dendrite/syncapi/types"
|
|
)
|
|
|
|
type DeviceListStreamProvider struct {
|
|
PartitionedStreamProvider
|
|
}
|
|
|
|
func (p *DeviceListStreamProvider) CompleteSync(
|
|
ctx context.Context,
|
|
req *types.SyncRequest,
|
|
) types.LogPosition {
|
|
return p.LatestPosition(ctx)
|
|
}
|
|
|
|
func (p *DeviceListStreamProvider) IncrementalSync(
|
|
ctx context.Context,
|
|
req *types.SyncRequest,
|
|
from, to types.LogPosition,
|
|
) types.LogPosition {
|
|
|
|
return to
|
|
}
|