laconicd-deprecated/x/registry/keeper
Thomas E Lackey 0adc932400 118: queryRecords should return [] when no matching records exist, not an error (#121)
Whenever a key is used which doesn't exist in the DB at all, an error is returned like this:

```
[
  {
    message: `rpc error: code = Unknown desc = store doesn't have key: "\\atypeApplicationRecord"`,
    path: [ 'queryRecords' ]
  }
]
```

That doesn't make any sense, as it is not an error to find out that the thing you asked for does not exist.  This changes it to return an empty list.

Reviewed-on: cerc-io/laconicd#121
Reviewed-by: David Boreham <dboreham@noreply.git.vdb.to>
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-11-28 20:41:28 +00:00
..
grpc_query_test.go rename nameservie to registry (#54) 2022-12-09 09:47:14 +05:30
grpc_query.go fix lint (#101) 2023-03-15 11:22:35 -04:00
invariants.go rename nameservie to registry (#54) 2022-12-09 09:47:14 +05:30
keeper_test.go rename nameservie to registry (#54) 2022-12-09 09:47:14 +05:30
keeper.go 118: queryRecords should return [] when no matching records exist, not an error (#121) 2023-11-28 20:41:28 +00:00
msg_server.go rename nameservie to registry (#54) 2022-12-09 09:47:14 +05:30
naming_keeper.go fix lint (#101) 2023-03-15 11:22:35 -04:00
params.go rename nameservie to registry (#54) 2022-12-09 09:47:14 +05:30
record_keeper.go fix lint (#101) 2023-03-15 11:22:35 -04:00
sync.go rename nameservie to registry (#54) 2022-12-09 09:47:14 +05:30