mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-04 15:58:13 +08:00
buffer error chan to prevent dead goro buildup
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
This commit is contained in:
parent
41c5e11ab1
commit
a4f2d1d2f7
@ -146,7 +146,7 @@ func PutRecordToRouting(ctx context.Context, k ci.PrivKey, value path.Path, seqn
|
||||
entry.Ttl = proto.Uint64(uint64(ttl.Nanoseconds()))
|
||||
}
|
||||
|
||||
errs := make(chan error)
|
||||
errs := make(chan error, 2)
|
||||
|
||||
go func() {
|
||||
errs <- PublishEntry(ctx, r, ipnskey, entry)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user