Files
core/Warehouse.go
Kleissner 446c62bcd9 Explicitly define locations for important files and folders in the config file.
This removes the hardcoded paths for the blockchain and warehouse.
2021-11-17 17:37:04 +01:00

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())
}
}