rpcperms: enforce order of interceptors

In this commit, we let the registered middleware interceptors be stored
in a slice rather than a map so that the order in which the interceptors
are executed is guarenteed to be the same as the order in which they
were registered.
This commit is contained in:
Elle Mouton committed 2022-07-07 17:16:42 +02:00
1 parent dc35f78ebc
commit 0d55deac63
2 files changed
+41 -19

No files matched your search

@@ -65,6 +65,9 @@
### Code cleanup, refactor, typo fixes
* [Migrate instances of assert.NoError to require.NoError](https://github.com/lightningnetwork/lnd/pull/6636).
* [Enforce the order of rpc interceptor execution](https://github.com/lightningnetwork/lnd/pull/6709) to be the same as the
order in which they were registered.
### Tooling and documentation