Page MenuHomePhabricator

[chronik] cleanup of json_to_u31 helper function
ClosedPublic

Authored by PiRK on Fri, Jan 10, 12:17.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCf3dfa6c485fe: [chronik] cleanup of json_to_u31 helper function
Summary

This makes the code more idiomatic, saves a string conversion (in the success case) and two clones in all cases.

Depends on D17501

Test Plan

nija check-functional

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Fri, Jan 10, 12:17
Unknown Object (User) added a subscriber: Unknown Object (User).Fri, Jan 10, 12:42
This comment was removed by Fabien.
Fabien added inline comments.
chronik/chronik-http/src/electrum.rs
340 ↗(On Diff #52109)

TIL

This revision is now accepted and ready to land.Fri, Jan 10, 12:56