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
e4d4cc17
Unverified
Commit
e4d4cc17
authored
Aug 23, 2024
by
cui
Committed by
GitHub
Aug 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: using maps.Keys (#11570)
parent
33e925d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
setup.go
op-e2e/setup.go
+3
-4
No files found.
op-e2e/setup.go
View file @
e4d4cc17
...
@@ -16,6 +16,8 @@ import (
...
@@ -16,6 +16,8 @@ import (
"testing"
"testing"
"time"
"time"
"golang.org/x/exp/maps"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/batcher"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/batcher"
ds
"github.com/ipfs/go-datastore"
ds
"github.com/ipfs/go-datastore"
dsSync
"github.com/ipfs/go-datastore/sync"
dsSync
"github.com/ipfs/go-datastore/sync"
...
@@ -772,10 +774,7 @@ func (cfg SystemConfig) Start(t *testing.T, _opts ...SystemConfigOption) (*Syste
...
@@ -772,10 +774,7 @@ func (cfg SystemConfig) Start(t *testing.T, _opts ...SystemConfigOption) (*Syste
// Rollup nodes
// Rollup nodes
// Ensure we are looping through the nodes in alphabetical order
// Ensure we are looping through the nodes in alphabetical order
ks
:=
make
([]
string
,
0
,
len
(
cfg
.
Nodes
))
ks
:=
maps
.
Keys
(
cfg
.
Nodes
)
for
k
:=
range
cfg
.
Nodes
{
ks
=
append
(
ks
,
k
)
}
// Sort strings in ascending alphabetical order
// Sort strings in ascending alphabetical order
sort
.
Strings
(
ks
)
sort
.
Strings
(
ks
)
...
...
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