From bf06f0a9f6e6467633e646f8019f9f6c286a8696 Mon Sep 17 00:00:00 2001 From: Nikitin Aleksandr Date: Tue, 23 Jan 2024 14:01:03 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20Panicf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/templates/pkg/network/grpc/grpc_client/grpc_client.go_ | 2 +- bin/templates/pkg/network/nrpc/nrpc_client/nrpc_client.go_ | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/templates/pkg/network/grpc/grpc_client/grpc_client.go_ b/bin/templates/pkg/network/grpc/grpc_client/grpc_client.go_ index 4841eca..59753b7 100644 --- a/bin/templates/pkg/network/grpc/grpc_client/grpc_client.go_ +++ b/bin/templates/pkg/network/grpc/grpc_client/grpc_client.go_ @@ -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) diff --git a/bin/templates/pkg/network/nrpc/nrpc_client/nrpc_client.go_ b/bin/templates/pkg/network/nrpc/nrpc_client/nrpc_client.go_ index 9316696..a573e3a 100644 --- a/bin/templates/pkg/network/nrpc/nrpc_client/nrpc_client.go_ +++ b/bin/templates/pkg/network/nrpc/nrpc_client/nrpc_client.go_ @@ -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)