You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: rdb.go
    path of file: ./repos/convoy/internal/pkg/rdb
    
    the code of the file until where you have to start completion: package rdb

import (
	"errors"

	"github.com/frain-dev/convoy/util"
	"github.c
    
func NewClient(addresses []string) (*Redis, error) {
	if len(addresses) == 0 {
		return nil, errors.New("redis addresses list cannot be empty")
	}

	for _, dsn := range addresses {
		if util.IsStringEmpty(dsn) {
			return nil, errors.New("dsn cannot be empty")
		}
	}

	var client redis.UniversalClient

	if len(addresses) == 1 {
		opts, err := redis.ParseURL(addresses[0])
		if err != nil {
			return nil, err
		}

		client = redis.NewClient(opts)
	} else {
		client = redis.NewUniversalClient(&redis.UniversalOptions{
			Addrs: addresses,
		})
	}

	// Enable tracing instrumentation.
	if err := redisotel.InstrumentTracing(client); err != nil {
		return nil, err
	}

	return &Redis{addresses: addresses, client: client}, nil
}