Remove broken network key prefix check

This commit is contained in:
Patrick Pacher 2022-02-10 14:32:57 +01:00
parent 845e3a2002
commit 90a87bae04

View file

@ -48,10 +48,6 @@ func makeKey(pid int, scope, id string) string {
func parseDBKey(key string) (pid int, scope, id string, ok bool) { func parseDBKey(key string) (pid int, scope, id string, ok bool) {
// Split into segments. // Split into segments.
segments := strings.Split(key, "/") segments := strings.Split(key, "/")
// Check for valid prefix.
if segments[0] != "tree" {
return 0, "", "", false
}
// Keys have 2 or 4 segments. // Keys have 2 or 4 segments.
switch len(segments) { switch len(segments) {