Fix lint error

This commit is contained in:
Neil Alexander 2020-12-15 14:21:39 +00:00
parent 04ff081e97
commit bfed962a13
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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 {