Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Revert to WithCancel
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmabc committed Feb 25, 2019
1 parent b3c64d0 commit 909e269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (n *OpenBazaarNode) SendOfflineMessage(p peer.ID, k *libp2p.PubKey, m *pb.M
log.Debugf("Sending offline message to: %s, Message Type: %s, PointerID: %s, Location: %s", p.Pretty(), m.MessageType.String(), pointer.Cid.String(), pointer.Value.Addrs[0].String())
OfflineMessageWaitGroup.Add(2)
go func() {
ctx, cancel := context.WithTimeout(context.Background(), n.OfflineMessageFailoverTimeout)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
err := ipfs.PublishPointer(n.DHT, ctx, pointer)
if err != nil {
Expand Down

0 comments on commit 909e269

Please sign in to comment.