Skip to content

Commit

Permalink
go/oais-node/grpc: remove unneeded datadir check
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Nov 8, 2023
1 parent 297090c commit 7f64f6d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Empty file added .changelog/5430.trivial.md
Empty file.
6 changes: 0 additions & 6 deletions go/oasis-node/cmd/common/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package grpc

import (
"crypto/tls"
"errors"
"fmt"
"os"
"strings"
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 7f64f6d

Please sign in to comment.