From ae4e5270c27abb79efc87167cd53b1b4ae2e7f19 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 6 Apr 2020 14:14:13 +1000 Subject: [PATCH] Fix formatting directives --- webtorrent/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webtorrent/client.go b/webtorrent/client.go index 377399cb..28d6962a 100644 --- a/webtorrent/client.go +++ b/webtorrent/client.go @@ -148,7 +148,7 @@ func (c *Client) trackerReadLoop() { for { _, message, err := tracker.ReadMessage() if err != nil { - log.Fatal("read error: %v", err) + log.Fatalf("read error: %v", err) } log.Printf("recv: %s", message) @@ -201,7 +201,7 @@ func (c *Client) trackerReadLoop() { } err = peer.transport.SetAnswer(*ar.Answer, c.handleDataChannel) if err != nil { - log.Fatal("failed to sent answer: %v", err) + log.Fatalf("failed to sent answer: %v", err) } } }