Drop direct connection and uses consul

This commit is contained in:
2024-06-19 23:25:40 +08:00
parent 5a3c6fcada
commit d9aa478d10
9 changed files with 78 additions and 59 deletions

View File

@ -56,9 +56,6 @@ func main() {
if err := services.SetupAPNS(); err != nil {
log.Error().Err(err).Msg("An error occurred when connecting APNs...")
}
if err := grpc.ConnectPaperclip(); err != nil {
log.Fatal().Err(err).Msg("An error occurred when connecting to Paperclip...")
}
// Server
server.NewServer()