Skip to content

Commit

Permalink
return 503 for non-insert queries if there is no live servers
Browse files Browse the repository at this point in the history
  • Loading branch information
splichy committed Nov 12, 2020
1 parent 0985175 commit b3d4e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,6 @@ func (c *Clickhouse) SendQuery(r *ClickhouseRequest) (response string, status in
}
return response, status, err
}
return response, status, ErrNoServers
return "", http.StatusServiceUnavailable, ErrNoServers
}
}

0 comments on commit b3d4e56

Please sign in to comment.