Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-swarm
Commits
de528f18
Commit
de528f18
authored
Mar 31, 2021
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nuke incref, it's useless
parent
59006419
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
dial_sync.go
dial_sync.go
+1
-5
No files found.
dial_sync.go
View file @
de528f18
...
...
@@ -43,10 +43,6 @@ type activeDial struct {
ds
*
DialSync
}
func
(
ad
*
activeDial
)
incref
()
{
ad
.
refCnt
++
}
func
(
ad
*
activeDial
)
decref
()
{
ad
.
ds
.
dialsLk
.
Lock
()
ad
.
refCnt
--
...
...
@@ -107,7 +103,7 @@ func (ds *DialSync) getActiveDial(p peer.ID) *activeDial {
}
// increase ref count before dropping dialsLk
actd
.
incref
()
actd
.
refCnt
++
return
actd
}
...
...
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