From 94998291fbcb884510398b73150e7c9c543d2329 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 10 Oct 2021 11:32:10 -0700 Subject: mpd: rename function to create the player --- tools/mpd-stats/cmd/mpd-scrobbler/main.go | 2 +- tools/mpd-stats/internal/mpd/mpd.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/mpd-stats') diff --git a/tools/mpd-stats/cmd/mpd-scrobbler/main.go b/tools/mpd-stats/cmd/mpd-scrobbler/main.go index 40b1348..3953123 100644 --- a/tools/mpd-stats/cmd/mpd-scrobbler/main.go +++ b/tools/mpd-stats/cmd/mpd-scrobbler/main.go @@ -11,7 +11,7 @@ func main() { net := "tcp" addr := "localhost:6600" - c, err := mpd.NewMPD(net, addr) + c, err := mpd.NewPlayer(net, addr) if err != nil { log.Fatalf("failed to create a client: %v", err) } diff --git a/tools/mpd-stats/internal/mpd/mpd.go b/tools/mpd-stats/internal/mpd/mpd.go index 8991adc..ed9d3c2 100644 --- a/tools/mpd-stats/internal/mpd/mpd.go +++ b/tools/mpd-stats/internal/mpd/mpd.go @@ -12,7 +12,7 @@ type player struct { Client *mpd.Client } -func NewMPD(net string, addr string) (*player, error) { +func NewPlayer(net string, addr string) (*player, error) { var ( p player err error -- cgit 1.4.1