Skip to content

Commit

Permalink
Fix typos in etcdqdb.go
Browse files Browse the repository at this point in the history
  • Loading branch information
EinKrebs authored Feb 26, 2024
1 parent 160bed9 commit 9feb893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qdb/etcdqdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ func (q *EtcdQDB) OpenRouter(ctx context.Context, id string) error {
return err
}
if len(getResp.Kvs) == 0 {
return spqrerror.Newf(spqrerror.SPQR_ROUTER_ERROR, "router with id %s does not exists", id)
return spqrerror.Newf(spqrerror.SPQR_ROUTER_ERROR, "router with id %s does not exist", id)
}

var routers []*Router
Expand Down Expand Up @@ -854,7 +854,7 @@ func (q *EtcdQDB) CloseRouter(ctx context.Context, id string) error {
return err
}
if len(getResp.Kvs) == 0 {
return spqrerror.Newf(spqrerror.SPQR_ROUTER_ERROR, "router with id %s does not exists", id)
return spqrerror.Newf(spqrerror.SPQR_ROUTER_ERROR, "router with id %s does not exist", id)
}

var routers []*Router
Expand Down

0 comments on commit 9feb893

Please sign in to comment.