From 7f64f6d863d29e5823dd2b403fa29505aca08f8d Mon Sep 17 00:00:00 2001 From: ptrus Date: Tue, 7 Nov 2023 14:02:12 +0100 Subject: [PATCH] go/oais-node/grpc: remove unneeded datadir check --- .changelog/5430.trivial.md | 0 go/oasis-node/cmd/common/grpc/grpc.go | 6 ------ 2 files changed, 6 deletions(-) create mode 100644 .changelog/5430.trivial.md diff --git a/.changelog/5430.trivial.md b/.changelog/5430.trivial.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/go/oasis-node/cmd/common/grpc/grpc.go b/go/oasis-node/cmd/common/grpc/grpc.go index 84cf4d98dc9..5afe5516a19 100644 --- a/go/oasis-node/cmd/common/grpc/grpc.go +++ b/go/oasis-node/cmd/common/grpc/grpc.go @@ -3,7 +3,6 @@ package grpc import ( "crypto/tls" - "errors" "fmt" "os" "strings" @@ -64,11 +63,6 @@ func NewServerTCP(cert *tls.Certificate, installWrapper bool) (*cmnGrpc.Server, // This internally takes a snapshot of the current global tracer, so // make sure you initialize the global tracer before calling this. func NewServerLocal(installWrapper bool) (*cmnGrpc.Server, error) { - dataDir := common.DataDir() - if dataDir == "" { - return nil, errors.New("data directory must be set") - } - config := &cmnGrpc.ServerConfig{ Name: "internal", Path: common.InternalSocketPath(),