Fix build
This commit is contained in:
parent
e1975644d6
commit
de38b46392
@ -1495,7 +1495,7 @@ func (m *Model) GlobalDirectoryTree(folder, prefix string, levels int, dirsonly
|
|||||||
return output
|
return output
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Model) availability(folder, file string) []protocol.DeviceID {
|
func (m *Model) Availability(folder, file string) []protocol.DeviceID {
|
||||||
// Acquire this lock first, as the value returned from foldersFiles can
|
// Acquire this lock first, as the value returned from foldersFiles can
|
||||||
// get heavily modified on Close()
|
// get heavily modified on Close()
|
||||||
m.pmut.RLock()
|
m.pmut.RLock()
|
||||||
|
|||||||
@ -872,7 +872,7 @@ func (p *Puller) pullerRoutine(in <-chan pullBlockState, out chan<- *sharedPulle
|
|||||||
}
|
}
|
||||||
|
|
||||||
var lastError error
|
var lastError error
|
||||||
potentialDevices := p.model.availability(p.folder, state.file.Name)
|
potentialDevices := p.model.Availability(p.folder, state.file.Name)
|
||||||
for {
|
for {
|
||||||
// Select the least busy device to pull the block from. If we found no
|
// Select the least busy device to pull the block from. If we found no
|
||||||
// feasible device at all, fail the block (and in the long run, the
|
// feasible device at all, fail the block (and in the long run, the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user