formatting fix. error->eror

This commit is contained in:
Jared Wasinger 2023-11-08 16:54:09 +08:00
parent dfea5f3160
commit 3419543ce0
3 changed files with 4 additions and 4 deletions

View file

@ -95,7 +95,7 @@ func LevelString(l slog.Level) string {
case slog.LevelWarn: case slog.LevelWarn:
return "warn" return "warn"
case slog.LevelError: case slog.LevelError:
return "error" return "eror"
case LevelCrit: case LevelCrit:
return "crit" return "crit"
default: default:

View file

@ -35,13 +35,13 @@ import (
"time" "time"
"github.com/ethereum/go-ethereum/internal/reexec" "github.com/ethereum/go-ethereum/internal/reexec"
"golang.org/x/exp/slog"
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/node" "github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/p2p" "github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/ethereum/go-ethereum/p2p/enode"
"github.com/ethereum/go-ethereum/rpc" "github.com/ethereum/go-ethereum/rpc"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"golang.org/x/exp/slog"
) )
func init() { func init() {

View file

@ -25,7 +25,6 @@ import (
"os" "os"
"strconv" "strconv"
"golang.org/x/exp/slog"
"github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/internal/reexec" "github.com/ethereum/go-ethereum/internal/reexec"
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
@ -35,6 +34,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/enr" "github.com/ethereum/go-ethereum/p2p/enr"
"github.com/ethereum/go-ethereum/rpc" "github.com/ethereum/go-ethereum/rpc"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"golang.org/x/exp/slog"
) )
// Node represents a node in a simulation network which is created by a // Node represents a node in a simulation network which is created by a