29
29
// info, waits for it to be initialized, and returns a new State
30
30
// representing the environment connected to.
31
31
func DialInfo(info *Info) (*State, error) {
33
33
if len(info.Addrs) == 0 {
34
34
return nil, errors.New("no mongo addresses")