Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
upliveapp committed Jun 23, 2020
1 parent 73c2f23 commit c48db9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ms/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (c *Client) GetRealtime(key string) (*Result, error) {

func (c *Client) GetOrRealtime(key string, realtime bool) (*Result, error) {
if key == "" {
return nil, errors.New("key not empty")
return nil, KeyNotEmpty
}
uri := c.masterUri
if realtime == false {
Expand All @@ -148,7 +148,7 @@ func (c *Client) GetOrRealtime(key string, realtime bool) (*Result, error) {

func (c *Client) Delete(key string) (*Result, error) {
if key == "" {
return nil, errors.New("key not empty")
return nil, KeyNotEmpty
}
request, err := http.NewRequest(http.MethodDelete, fmt.Sprintf("%s/%s", c.masterUri, key), nil)
if err != nil {
Expand Down

0 comments on commit c48db9e

Please sign in to comment.