mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 10:57:49 +01:00
24 lines
493 B
Go
24 lines
493 B
Go
/*
|
|
File Name: Warehouse.go
|
|
Copyright: 2021 Peernet s.r.o.
|
|
Author: Peter Kleissner
|
|
*/
|
|
|
|
package core
|
|
|
|
import (
|
|
"github.com/PeernetOfficial/core/warehouse"
|
|
)
|
|
|
|
// UserWarehouse is the user's warehouse for storing files that are shared
|
|
var UserWarehouse *warehouse.Warehouse
|
|
|
|
func initUserWarehouse() {
|
|
var err error
|
|
UserWarehouse, err = warehouse.Init(config.WarehouseMain)
|
|
|
|
if err != nil {
|
|
Filters.LogError("initUserWarehouse", "error: %s\n", err.Error())
|
|
}
|
|
}
|