mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
lib/db: Remove unused blockFinder global (#6534)
This commit is contained in:
parent
37ede49077
commit
82fbcb96f8
@ -13,17 +13,11 @@ import (
|
|||||||
"github.com/syncthing/syncthing/lib/osutil"
|
"github.com/syncthing/syncthing/lib/osutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
var blockFinder *BlockFinder
|
|
||||||
|
|
||||||
type BlockFinder struct {
|
type BlockFinder struct {
|
||||||
db *Lowlevel
|
db *Lowlevel
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewBlockFinder(db *Lowlevel) *BlockFinder {
|
func NewBlockFinder(db *Lowlevel) *BlockFinder {
|
||||||
if blockFinder != nil {
|
|
||||||
return blockFinder
|
|
||||||
}
|
|
||||||
|
|
||||||
return &BlockFinder{
|
return &BlockFinder{
|
||||||
db: db,
|
db: db,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user