1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-22 00:36:41 +02:00

сделал Panicf

This commit is contained in:
Nikitin Aleksandr 2024-01-23 14:01:03 +03:00
parent 69f2d66861
commit bf06f0a9f6
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ func Connect() {
err = Connect_err()
if err != nil {
log.Fatalf("GRPC Connect() error: %v", err)
log.Panicf("GRPC Connect() error: %v", err)
} else {
addr := Settings.SYNC_SERVICE_HOST + ":" + Settings.SYNC_SERVICE_PORT
log.Info("GRPC client connected. Address: ", addr)

View File

@ -47,7 +47,7 @@ func Connect() {
err = Connect_err()
if err != nil {
log.Fatalf("NRPC Connect() error: %v", err)
log.Panicf("NRPC Connect() error: %v", err)
} else {
NatsURL := "nats://" + Settings.NATS_HOST + ":" + Settings.NATS_PORT
log.Info("GRPC client connected. Address: ", NatsURL)