Fixed missing config variables
This commit is contained in:
@@ -118,7 +118,7 @@ func Init() {
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
|
||||||
statusMesageDelay := int64(rand.Intn(appConfig.AppConfig.GeneralOptions.StatusMessageDelay))
|
statusMesageDelay := int64(rand.Intn(appConfig.AppConfig.GeneralOptions.CommandReplyDelay))
|
||||||
log.Printf("DELAYING FOR: %v", statusMesageDelay*1000000000)
|
log.Printf("DELAYING FOR: %v", statusMesageDelay*1000000000)
|
||||||
// Delay For two seccond to allow all clients to connect
|
// Delay For two seccond to allow all clients to connect
|
||||||
time.Sleep(time.Duration(statusMesageDelay * 1000000000))
|
time.Sleep(time.Duration(statusMesageDelay * 1000000000))
|
||||||
@@ -152,7 +152,7 @@ func Init() {
|
|||||||
// SendOnlinePresenceStanza - send online presence stnza with data, to server
|
// SendOnlinePresenceStanza - send online presence stnza with data, to server
|
||||||
func SendOnlinePresenceStanza(client *xmpp.Client, jid string) error {
|
func SendOnlinePresenceStanza(client *xmpp.Client, jid string) error {
|
||||||
|
|
||||||
statusMesageDelay := int64(rand.Intn(appConfig.AppConfig.GeneralOptions.StatusMessageDelay))
|
statusMesageDelay := int64(rand.Intn(appConfig.AppConfig.GeneralOptions.CommandReplyDelay))
|
||||||
log.Printf("DELAYING FOR: %v", statusMesageDelay*1000000000)
|
log.Printf("DELAYING FOR: %v", statusMesageDelay*1000000000)
|
||||||
// Delay For two seccond to allow all clients to connect
|
// Delay For two seccond to allow all clients to connect
|
||||||
time.Sleep(time.Duration(statusMesageDelay * 1000000000))
|
time.Sleep(time.Duration(statusMesageDelay * 1000000000))
|
||||||
|
|||||||
Reference in New Issue
Block a user