aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2018-04-18 18:27:20 +0800
committerGitHub <noreply@github.com>2018-04-18 18:27:20 +0800
commit52b046c9b6a0f6a280ff797f90784f76bfd310b9 (patch)
tree709ce3f7e873e47bdac72ab4f9935cf7b3108c4b /cmd
parent661f5f3dac23939630e3bf2f9ed2bf1bfb26e990 (diff)
downloaddexon-52b046c9b6a0f6a280ff797f90784f76bfd310b9.tar
dexon-52b046c9b6a0f6a280ff797f90784f76bfd310b9.tar.gz
dexon-52b046c9b6a0f6a280ff797f90784f76bfd310b9.tar.bz2
dexon-52b046c9b6a0f6a280ff797f90784f76bfd310b9.tar.lz
dexon-52b046c9b6a0f6a280ff797f90784f76bfd310b9.tar.xz
dexon-52b046c9b6a0f6a280ff797f90784f76bfd310b9.tar.zst
dexon-52b046c9b6a0f6a280ff797f90784f76bfd310b9.zip
rpc: clean up IPC handler (#16524)
This avoids logging accept errors on shutdown and removes a bit of duplication. It also fixes some goimports lint warnings.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/clef/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/clef/main.go b/cmd/clef/main.go
index fb91f4c25..9a1ae91ac 100644
--- a/cmd/clef/main.go
+++ b/cmd/clef/main.go
@@ -23,17 +23,18 @@ import (
"context"
"crypto/rand"
"crypto/sha256"
+ "encoding/hex"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
+ "os/signal"
"os/user"
"path/filepath"
"runtime"
"strings"
- "encoding/hex"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
@@ -44,7 +45,6 @@ import (
"github.com/ethereum/go-ethereum/signer/rules"
"github.com/ethereum/go-ethereum/signer/storage"
"gopkg.in/urfave/cli.v1"
- "os/signal"
)
// ExternalApiVersion -- see extapi_changelog.md
@@ -435,7 +435,7 @@ func signer(c *cli.Context) error {
ipcApiUrl = filepath.Join(configDir, "clef.ipc")
}
- listener, _, err := rpc.StartIPCEndpoint(func() bool { return true }, ipcApiUrl, rpcApi)
+ listener, _, err := rpc.StartIPCEndpoint(ipcApiUrl, rpcApi)
if err != nil {
utils.Fatalf("Could not start IPC api: %v", err)
}