Client sets the default domain if not provided

This commit is contained in:
Armon Dadgar 2014-02-25 14:19:05 -08:00
parent 9215784091
commit 8be7e3ac4e

View File

@ -66,7 +66,10 @@ func Query(params *QueryParam) error {
} }
} }
// Ensure a timeout // Ensure defaults are set
if params.Domain == "" {
params.Domain = "local"
}
if params.Timeout == 0 { if params.Timeout == 0 {
params.Timeout = time.Second params.Timeout = time.Second
} }