Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
7fd5a19c
Unverified
Commit
7fd5a19c
authored
Apr 02, 2024
by
carehabit
Committed by
GitHub
Apr 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: use the built-in slices library (#10005)
Signed-off-by:
carehabit
<
shenyuting@outlook.com
>
parent
3c7922c8
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
10 deletions
+10
-10
flags.go
op-batcher/flags/flags.go
+1
-1
disk.go
op-challenger/game/disk.go
+1
-1
coordinator.go
op-challenger/game/scheduler/coordinator.go
+1
-1
coordinator_test.go
op-challenger/game/scheduler/coordinator_test.go
+1
-1
system_test.go
op-e2e/system_test.go
+1
-1
superchain_test.go
op-node/node/superchain_test.go
+1
-1
host_test.go
op-node/p2p/host_test.go
+1
-1
channel_bank.go
op-node/rollup/derive/channel_bank.go
+1
-1
abi_stub.go
op-service/sources/batching/test/abi_stub.go
+1
-1
queue_test.go
op-service/txmgr/queue_test.go
+1
-1
No files found.
op-batcher/flags/flags.go
View file @
7fd5a19c
...
...
@@ -2,11 +2,11 @@ package flags
import
(
"fmt"
"slices"
"strings"
"time"
"github.com/urfave/cli/v2"
"golang.org/x/exp/slices"
"github.com/ethereum-optimism/optimism/op-batcher/compressor"
plasma
"github.com/ethereum-optimism/optimism/op-plasma"
...
...
op-challenger/game/disk.go
View file @
7fd5a19c
...
...
@@ -5,10 +5,10 @@ import (
"fmt"
"os"
"path/filepath"
"slices"
"strings"
"github.com/ethereum/go-ethereum/common"
"golang.org/x/exp/slices"
)
const
gameDirPrefix
=
"game-"
...
...
op-challenger/game/scheduler/coordinator.go
View file @
7fd5a19c
...
...
@@ -4,12 +4,12 @@ import (
"context"
"errors"
"fmt"
"slices"
"github.com/ethereum-optimism/optimism/op-challenger/game/types"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"golang.org/x/exp/slices"
)
var
errUnknownGame
=
errors
.
New
(
"unknown game"
)
...
...
op-challenger/game/scheduler/coordinator_test.go
View file @
7fd5a19c
...
...
@@ -3,6 +3,7 @@ package scheduler
import
(
"context"
"fmt"
"slices"
"testing"
"github.com/ethereum-optimism/optimism/op-challenger/game/scheduler/test"
...
...
@@ -11,7 +12,6 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"
)
func
TestScheduleNewGames
(
t
*
testing
.
T
)
{
...
...
op-e2e/system_test.go
View file @
7fd5a19c
...
...
@@ -7,6 +7,7 @@ import (
"math/big"
"os"
"runtime"
"slices"
"testing"
"time"
...
...
@@ -28,7 +29,6 @@ import (
"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"
"github.com/ethereum-optimism/optimism/op-bindings/bindings"
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
...
...
op-node/node/superchain_test.go
View file @
7fd5a19c
package
node
import
(
"slices"
"testing"
"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"
"github.com/ethereum/go-ethereum/params"
)
...
...
op-node/p2p/host_test.go
View file @
7fd5a19c
...
...
@@ -5,6 +5,7 @@ import (
"crypto/rand"
"math/big"
"net"
"slices"
"testing"
"time"
...
...
@@ -17,7 +18,6 @@ import (
mocknet
"github.com/libp2p/go-libp2p/p2p/net/mock"
ma
"github.com/multiformats/go-multiaddr"
"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
...
...
op-node/rollup/derive/channel_bank.go
View file @
7fd5a19c
...
...
@@ -3,10 +3,10 @@ package derive
import
(
"context"
"io"
"slices"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"golang.org/x/exp/slices"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
...
...
op-service/sources/batching/test/abi_stub.go
View file @
7fd5a19c
...
...
@@ -4,6 +4,7 @@ import (
"encoding/json"
"errors"
"fmt"
"slices"
"testing"
"github.com/ethereum-optimism/optimism/op-service/sources/batching/rpcblock"
...
...
@@ -13,7 +14,6 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"
)
type
expectedCall
struct
{
...
...
op-service/txmgr/queue_test.go
View file @
7fd5a19c
...
...
@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"math/big"
"slices"
"testing"
"time"
...
...
@@ -14,7 +15,6 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"
)
type
queueFunc
func
(
id
int
,
candidate
TxCandidate
,
receiptCh
chan
TxReceipt
[
int
],
q
*
Queue
[
int
])
bool
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment