"time"
"github.com/anacrolix/missinggo/expect"
- bolt "go.etcd.io/bbolt"
+ "go.etcd.io/bbolt"
"github.com/anacrolix/torrent/metainfo"
)
const (
// Chosen to match the usual chunk size in a torrent client. This way,
- // most chunk writes are to exactly one full item in bolt DB.
+ // most chunk writes are to exactly one full item in bbolt DB.
chunkSize = 1 << 14
)
type boltDBClient struct {
- db *bolt.DB
+ db *bbolt.DB
}
type boltDBTorrent struct {
}
func NewBoltDB(filePath string) ClientImplCloser {
- db, err := bolt.Open(filepath.Join(filePath, "bolt.db"), 0600, &bolt.Options{
+ db, err := bbolt.Open(filepath.Join(filePath, "bolt.db"), 0600, &bbolt.Options{
Timeout: time.Second,
})
expect.Nil(err)