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() err = Connect_err()
if err != nil { if err != nil {
log.Fatalf("GRPC Connect() error: %v", err) log.Panicf("GRPC Connect() error: %v", err)
} else { } else {
addr := Settings.SYNC_SERVICE_HOST + ":" + Settings.SYNC_SERVICE_PORT addr := Settings.SYNC_SERVICE_HOST + ":" + Settings.SYNC_SERVICE_PORT
log.Info("GRPC client connected. Address: ", addr) log.Info("GRPC client connected. Address: ", addr)

View File

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