Skip to content

Commit

Permalink
Merge pull request #18 from gowizzard/development
Browse files Browse the repository at this point in the history
fix: Remove static string and replace variable.
  • Loading branch information
gowizzard authored Nov 8, 2023
2 parents 35e3bd2 + 6dcba64 commit 0f6f22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/database/new_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
// NewClient creates a new client for the redis database with user authentication.
func NewClient(ctx context.Context, o Options) (client *Client, err error) {

conn, err := (&net.Dialer{}).DialContext(ctx, "tcp", "localhost:6379")
conn, err := (&net.Dialer{}).DialContext(ctx, "tcp", o.Address)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0f6f22b

Please sign in to comment.