mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2024-12-22 00:36:41 +02:00
сделал Panicf
This commit is contained in:
parent
69f2d66861
commit
bf06f0a9f6
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user