etcd: Store the scheme as a constant

This commit is contained in:
James Shubin
2024-02-22 12:43:30 -05:00
parent f60c25aacf
commit ad900fc8f1
2 changed files with 5 additions and 2 deletions

View File

@@ -191,7 +191,7 @@ func (obj *World) Fs(uri string) (engine.Fs, error) {
return obj.StandaloneFs, nil
}
if u.Scheme != "etcdfs" {
if u.Scheme != etcdfs.Scheme {
return nil, fmt.Errorf("unknown scheme: `%s`", u.Scheme)
}
if u.Path == "" {