mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-29 17:10:00 -07:00
(tested) split storage to data and peer interfaces,
add option for persisting (or not) torrent approval data
This commit is contained in:
@@ -8,8 +8,8 @@ import (
|
||||
"github.com/sot-tech/mochi/storage/test"
|
||||
)
|
||||
|
||||
func createNew() storage.Storage {
|
||||
ps, err := New(Config{
|
||||
func createNew() storage.PeerStorage {
|
||||
ps, err := NewPeerStorage(Config{
|
||||
ShardCount: 1024,
|
||||
GarbageCollectionInterval: 10 * time.Minute,
|
||||
PrometheusReportingInterval: 10 * time.Minute,
|
||||
|
||||
Reference in New Issue
Block a user