Commit a96510d
authored
* Implements `Fetch` in `MuxCache`
`MuxCache` doesn't implement the `Fetch` method and it returns an error.
However `MuxCache` doesn't have any logic instead it delegates to the appropriate
cache based on the request. This means that we can just use the same logic as `CreateWatch`
to delegate to the appropriate cache's `Fetch` method.
`Linear` cache doesnt implement `Fetch` either so this part of the call will fail but the rest
of the caches will work as expected.
Additionally it was a bit confusing to debug the issue since the error message resembles quite a
bit a `gRPC Unimplemented` error. So I updated the error message in `Linear` cache to be more specific.
Signed-off-by: sotiris <[email protected]>
* make error lowercase
Signed-off-by: sotiris <[email protected]>
---------
Signed-off-by: sotiris <[email protected]>
1 parent 295d9fa commit a96510d
2 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
0 commit comments