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
7a73979b
Unverified
Commit
7a73979b
authored
Apr 18, 2023
by
Michael de Hoog
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run tests using shadow compressor as default
parent
a71d036c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
config.go
op-batcher/batcher/config.go
+5
-5
flags.go
op-batcher/flags/flags.go
+1
-1
No files found.
op-batcher/batcher/config.go
View file @
7a73979b
...
@@ -157,16 +157,16 @@ func NewConfig(ctx *cli.Context) CLIConfig {
...
@@ -157,16 +157,16 @@ func NewConfig(ctx *cli.Context) CLIConfig {
func
(
c
CLIConfig
)
NewCompressorFactory
()
CompressorFactory
{
func
(
c
CLIConfig
)
NewCompressorFactory
()
CompressorFactory
{
return
func
()
(
derive
.
Compressor
,
error
)
{
return
func
()
(
derive
.
Compressor
,
error
)
{
switch
c
.
CompressorKind
{
switch
c
.
CompressorKind
{
case
flags
.
CompressorShadow
:
case
flags
.
CompressorTarget
:
return
NewShadowCompressor
(
c
.
MaxL1TxSize
-
1
,
// subtract 1 byte for version
)
default
:
return
NewTargetSizeCompressor
(
return
NewTargetSizeCompressor
(
c
.
TargetL1TxSize
-
1
,
// subtract 1 byte for version
c
.
TargetL1TxSize
-
1
,
// subtract 1 byte for version
c
.
TargetNumFrames
,
c
.
TargetNumFrames
,
c
.
ApproxComprRatio
,
c
.
ApproxComprRatio
,
)
)
default
:
return
NewShadowCompressor
(
c
.
MaxL1TxSize
-
1
,
// subtract 1 byte for version
)
}
}
}
}
}
}
op-batcher/flags/flags.go
View file @
7a73979b
...
@@ -92,7 +92,7 @@ var (
...
@@ -92,7 +92,7 @@ var (
flags
.
EnumString
[
CompressorKind
](
CompressorKinds
),
flags
.
EnumString
[
CompressorKind
](
CompressorKinds
),
EnvVar
:
opservice
.
PrefixEnvVar
(
envVarPrefix
,
"COMPRESSOR"
),
EnvVar
:
opservice
.
PrefixEnvVar
(
envVarPrefix
,
"COMPRESSOR"
),
Value
:
func
()
*
CompressorKind
{
Value
:
func
()
*
CompressorKind
{
out
:=
Compressor
Target
out
:=
Compressor
Shadow
return
&
out
return
&
out
}(),
}(),
}
}
...
...
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