Skip to content

Commit

Permalink
remove double .With() call (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
opentypefont committed Aug 7, 2024
1 parent 3316e8e commit 48ba7ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion disgolink/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (c *clientImpl) PlayerOnNode(node Node, guildID snowflake.ID) Player {
return player
}

player := NewPlayer(c.logger.With(slog.String("name", "disgolink_node_player"), slog.Int64("guild_id", int64(guildID))), c, node, guildID)
player := NewPlayer(c.logger, c, node, guildID)
c.ForPlugins(func(plugin Plugin) {
if pl, ok := plugin.(PluginEventHandler); ok {
pl.OnNewPlayer(player)
Expand Down
2 changes: 1 addition & 1 deletion disgolink/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type Player interface {

func NewPlayer(logger *slog.Logger, lavalink Client, node Node, guildID snowflake.ID) Player {
return &playerImpl{
logger: logger.With(slog.String("name", "player"), slog.String("guild_id", guildID.String())),
logger: logger.With(slog.String("name", "disgolink_player"), slog.Int64("guild_id", int64(guildID))),
lavalink: lavalink,
node: node,
guildID: guildID,
Expand Down

0 comments on commit 48ba7ab

Please sign in to comment.