Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
张蕾
Geth-Modification
Commits
81babe15
Commit
81babe15
authored
6 years ago
by
Matthew Halpern
Committed by
Viktor Trón
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swarm/*: remove redundant type specifiers (#19089)
parent
4e87b444
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
stream.go
swarm/network/stream/stream.go
+1
-1
pss.go
swarm/pss/pss.go
+1
-1
lookup_test.go
swarm/storage/feed/lookup/lookup_test.go
+1
-1
ldbstore_test.go
swarm/storage/ldbstore_test.go
+1
-1
No files found.
swarm/network/stream/stream.go
View file @
81babe15
...
...
@@ -75,7 +75,7 @@ const (
// subscriptionFunc is used to determine what to do in order to perform subscriptions
// usually we would start to really subscribe to nodes, but for tests other functionality may be needed
// (see TestRequestPeerSubscriptions in streamer_test.go)
var
subscriptionFunc
func
(
r
*
Registry
,
p
*
network
.
Peer
,
bin
uint8
,
subs
map
[
enode
.
ID
]
map
[
Stream
]
struct
{})
bool
=
doRequestSubscription
var
subscriptionFunc
=
doRequestSubscription
// Registry registry for outgoing and incoming streamer constructors
type
Registry
struct
{
...
...
This diff is collapsed.
Click to expand it.
swarm/pss/pss.go
View file @
81babe15
...
...
@@ -676,7 +676,7 @@ func (p *Pss) send(to []byte, topic Topic, msg []byte, asymmetric bool, key []by
// sendFunc is a helper function that tries to send a message and returns true on success.
// It is set here for usage in production, and optionally overridden in tests.
var
sendFunc
func
(
p
*
Pss
,
sp
*
network
.
Peer
,
msg
*
PssMsg
)
bool
=
sendMsg
var
sendFunc
=
sendMsg
// tries to send a message, returns true if successful
func
sendMsg
(
p
*
Pss
,
sp
*
network
.
Peer
,
msg
*
PssMsg
)
bool
{
...
...
This diff is collapsed.
Click to expand it.
swarm/storage/feed/lookup/lookup_test.go
View file @
81babe15
This diff is collapsed.
Click to expand it.
swarm/storage/ldbstore_test.go
View file @
81babe15
...
...
@@ -189,9 +189,9 @@ func TestMockDbStoreNotFound(t *testing.T) {
}
func
testIterator
(
t
*
testing
.
T
,
mock
bool
)
{
var
chunkcount
int
=
32
var
i
int
var
poc
uint
chunkcount
:=
32
chunkkeys
:=
NewAddressCollection
(
chunkcount
)
chunkkeysResults
:=
NewAddressCollection
(
chunkcount
)
...
...
This diff is collapsed.
Click to expand it.
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