This commit is contained in:
@@ -2,6 +2,7 @@ package svc
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/perfect-panel/server/internal/model/client"
|
||||
"github.com/perfect-panel/server/internal/model/node"
|
||||
@@ -78,7 +79,8 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
// IP location initialize
|
||||
geoIP, err := NewIPLocation("./cache/GeoLite2-City.mmdb")
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
// panic(err.Error())
|
||||
fmt.Printf("GeoIP load failed: %v\n", err)
|
||||
}
|
||||
|
||||
rds := redis.NewClient(&redis.Options{
|
||||
|
||||
Reference in New Issue
Block a user