mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
Fix lint error
This commit is contained in:
parent
04ff081e97
commit
bfed962a13
|
|
@ -73,8 +73,10 @@ func DeviceListCatchup(
|
||||||
offset = sarama.OffsetOldest
|
offset = sarama.OffsetOldest
|
||||||
// Extract partition/offset from sync token
|
// Extract partition/offset from sync token
|
||||||
// TODO: In a world where keyserver is sharded there will be multiple partitions and hence multiple QueryKeyChanges to make.
|
// TODO: In a world where keyserver is sharded there will be multiple partitions and hence multiple QueryKeyChanges to make.
|
||||||
partition = from.DeviceListPosition.Partition
|
if !from.DeviceListPosition.IsEmpty() {
|
||||||
offset = from.DeviceListPosition.Offset
|
partition = from.DeviceListPosition.Partition
|
||||||
|
offset = from.DeviceListPosition.Offset
|
||||||
|
}
|
||||||
var toOffset int64
|
var toOffset int64
|
||||||
toOffset = sarama.OffsetNewest
|
toOffset = sarama.OffsetNewest
|
||||||
if toLog := to.DeviceListPosition; toLog.Offset > 0 {
|
if toLog := to.DeviceListPosition; toLog.Offset > 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue