router: Make defaultChainRouter match a request by listing chains with iterator #62

Merged
fyrchik merged 1 commit from aarifullin/policy-engine:feat/list_by_iterator into master 2024-04-26 06:20:45 +00:00

1 commit

Author SHA1 Message Date
aarifullin
4acfe0e62f [#62] morph: List morph rules chains by traversing iterator
All checks were successful
DCO action / DCO (pull_request) Successful in 1m18s
Tests and linters / Tests (1.21) (pull_request) Successful in 1m33s
Tests and linters / Tests (1.20) (pull_request) Successful in 1m55s
Tests and linters / Tests with -race (pull_request) Successful in 1m45s
Tests and linters / Staticcheck (pull_request) Successful in 1m48s
Tests and linters / Lint (pull_request) Successful in 2m27s
* Make `ListMorphRuleChains` methods use `commonclient.ReadIteratorItems`.
* Introduce `ContractStorageActor` interface.
* Iterators are used because listing by `ListChainsByPrefix` may cause
  stack overflow from neo-go side (len(items) > 1024).

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2024-04-09 14:22:30 +03:00