package app import ( log "github.com/sirupsen/logrus" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" pb "parsing-service/proto/taskProcessor" ) func newClient(app *App) pb.TaskProcessorClient { var opts []grpc.DialOption insec := grpc.WithTransportCredentials(insecure.NewCredentials()) opts = append(opts, insec) conn, err := grpc.NewClient(app.ClientAddress, opts...) if err != nil { log.Fatal(err) } return pb.NewTaskProcessorClient(conn) }