Skip to content

Commit 8a3cdce

Browse files
committed
ipn/mh: m fix log fmt
1 parent d4e90a1 commit 8a3cdce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

intra/ipn/multihost/map.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,12 @@ func (m *MHMap) Put(h *MH) (ok bool) {
6666
}
6767

6868
func (m *MHMap) putLocked(h *MH) (ok bool) {
69+
if h == nil {
70+
return false
71+
}
72+
6973
if _, dup := m.uniq[h]; dup {
70-
log.W("multihost: %s map: put: dup; call refresh instead?", m.k, dup)
74+
log.W("multihost: %s map: put: dup; call refresh instead?", m.k)
7175
return h.Len() > 0
7276
}
7377

0 commit comments

Comments
 (0)