good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
767dc6c7
Commit
767dc6c7
authored
7 years ago
by
Bas van Kervel
Browse files
Options
Downloads
Patches
Plain Diff
whisper: remove gencodec override for config
parent
36e79634
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
whisper/whisperv5/config.go
+0
-2
0 additions, 2 deletions
whisper/whisperv5/config.go
whisper/whisperv5/gen_config.go
+0
-32
0 additions, 32 deletions
whisper/whisperv5/gen_config.go
with
0 additions
and
34 deletions
whisper/whisperv5/config.go
+
0
−
2
View file @
767dc6c7
...
...
@@ -20,8 +20,6 @@ import (
"gopkg.in/urfave/cli.v1"
)
//go:generate gencodec -type Config -formats toml -out gen_config.go
type
Config
struct
{
MaxMessageSize
uint32
`toml:",omitempty"`
MinimumAcceptedPOW
float64
`toml:",omitempty"`
...
...
This diff is collapsed.
Click to expand it.
whisper/whisperv5/gen_config.go
deleted
100644 → 0
+
0
−
32
View file @
36e79634
// Code generated by github.com/fjl/gencodec. DO NOT EDIT.
package
whisperv5
func
(
c
Config
)
MarshalTOML
()
(
interface
{},
error
)
{
type
Config
struct
{
MaxMessageSize
uint32
`toml:",omitempty"`
MinimumAcceptedPOW
float64
`toml:",omitempty"`
}
var
enc
Config
enc
.
MaxMessageSize
=
c
.
MaxMessageSize
enc
.
MinimumAcceptedPOW
=
c
.
MinimumAcceptedPOW
return
&
enc
,
nil
}
func
(
c
*
Config
)
UnmarshalTOML
(
unmarshal
func
(
interface
{})
error
)
error
{
type
Config
struct
{
MaxMessageSize
*
uint32
`toml:",omitempty"`
MinimumAcceptedPOW
*
float64
`toml:",omitempty"`
}
var
dec
Config
if
err
:=
unmarshal
(
&
dec
);
err
!=
nil
{
return
err
}
if
dec
.
MaxMessageSize
!=
nil
{
c
.
MaxMessageSize
=
*
dec
.
MaxMessageSize
}
if
dec
.
MinimumAcceptedPOW
!=
nil
{
c
.
MinimumAcceptedPOW
=
*
dec
.
MinimumAcceptedPOW
}
return
nil
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment