fix: nil pointer

This commit is contained in:
Ankit Nayan 2022-12-28 15:30:24 +05:30
parent 1e035be978
commit d1ee15c372

View File

@ -101,6 +101,7 @@ func createTelemetry() {
phOperator: ph.New(ph_api_key),
ipAddress: getOutboundIP(),
rateLimits: make(map[string]int8),
activeUser: make(map[string]int8),
}
telemetry.minRandInt = 0
telemetry.maxRandInt = int(1 / DEFAULT_SAMPLING)