update comment

This commit is contained in:
Travis 2021-02-10 11:55:34 -06:00
parent 1c3b0f364d
commit f3d1572232
No known key found for this signature in database
GPG key ID: 37080CC2042BA34E

View file

@ -680,10 +680,7 @@ func (e *Etcd) View(ctx context.Context, indexName, fieldName, name string) ([]b
// CreateView differs from CreateIndex and CreateField in that it does not
// return an error if the view already exists. If this logic needs to be
// changed, we likely need to introduce an ErrViewExists variable and return
// that. I decided not to do that now because it would require importing the
// etcd package into the pilosa root package. The better way to do that may be
// to define those error types in the disco package instead.
// changed, we likely need to return disco.ErrViewExists.
func (e *Etcd) CreateView(ctx context.Context, indexName, fieldName, name string, val []byte) error {
cli, err := e.client()
if err != nil {