Page MenuHomePhabricator

[lib] Use channel instead of channel/search Neynar endpoint
ClosedPublic

Authored by ashoat on Wed, Nov 20, 6:44 AM.
Tags
None
Referenced Files
F3408325: D13979.id45966.diff
Wed, Dec 4, 10:52 AM
Unknown Object (File)
Mon, Dec 2, 4:22 AM
Unknown Object (File)
Sat, Nov 30, 6:13 PM
Unknown Object (File)
Fri, Nov 29, 2:59 PM
Unknown Object (File)
Thu, Nov 28, 8:18 PM
Unknown Object (File)
Thu, Nov 28, 2:22 AM
Unknown Object (File)
Wed, Nov 27, 9:04 AM
Unknown Object (File)
Wed, Nov 27, 6:04 AM
Subscribers

Details

Summary

We're exceeding our compute unit allotment with Neynar: ENG-9930.

It's mostly the channel/search API. I'm guessing it's more expensive than the channel API, which has fewer capabilities.

Turns out we actually already have NeynarClient.fetchFarcasterChannelInfo, which calls the channel API. But we don't have any callsites to it anymore.

This diff replaces the code for NeynarClient.fetchFarcasterChannelByID with NeynarClient.fetchFarcasterChannelInfo, and subsequently removes the latter.

Depends on D13978

Test Plan

Tested that channel avatars still load on both web and native

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable