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.
This commit is contained in:
Felix Lange
2018-04-18 12:27:20 +02:00
committed by GitHub
parent 661f5f3dac
commit 52b046c9b6
6 changed files with 23 additions and 54 deletions

View File

@ -25,6 +25,7 @@ import (
"fmt"
"net"
"net/url"
"os"
"reflect"
"strconv"
"strings"
@ -33,7 +34,6 @@ import (
"time"
"github.com/ethereum/go-ethereum/log"
"os"
)
var (