add hubs create in http
This commit is contained in:
@@ -9,14 +9,10 @@ import (
|
||||
"github.com/BurntSushi/toml"
|
||||
)
|
||||
|
||||
// Array-size constants — must be compile-time values; cannot be overridden via config file.
|
||||
const (
|
||||
MaxDirectMsgCache uint32 = 32
|
||||
MaxHubMsgCache uint32 = 32
|
||||
)
|
||||
|
||||
var (
|
||||
Port uint32 = 8080
|
||||
MaxDirectMsgCache uint32 = 32
|
||||
MaxHubMsgCache uint32 = 32
|
||||
FileStorageBucketName string = "communicator"
|
||||
MaxRequestBytes uint32 = 4 << 10
|
||||
MaxRequestWithFileBytes uint32 = 1 << 30
|
||||
@@ -54,6 +50,8 @@ func LoadConfFile() {
|
||||
}
|
||||
|
||||
Port = cfg.Port
|
||||
MaxDirectMsgCache = cfg.MaxDirectMsgCache
|
||||
MaxHubMsgCache = cfg.MaxHubMsgCache
|
||||
FileStorageBucketName = cfg.FileStorageBucketName
|
||||
MaxRequestBytes = cfg.MaxRequestBytes
|
||||
MaxRequestWithFileBytes = cfg.MaxRequestWithFileBytes
|
||||
|
||||
Reference in New Issue
Block a user