Page MenuHomePhabricator

[Chronik] Use struct init for `QueryTxs` instead of `new`
ClosedPublic

Authored by tobias_ruck on Apr 12 2023, 21:53.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC91da94b6cded: [Chronik] Use struct init for `QueryTxs` instead of `new`
Summary

While using new is fine, once we add more fields to QueryTxs using positional parameters becomes less readable, so we use the clearer struct init.

Test Plan

ninja check-crates

Diff Detail

Repository
rABC Bitcoin ABC
Branch
chronik-refactor-query-txs
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23259
Build 46137: Build Diffbuild-chronik
Build 46136: arc lint + arc unit