Page MenuHomePhabricator

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

Authored by ashoat on Nov 20 2024, 6:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 20, 5:22 AM
Unknown Object (File)
Tue, Mar 11, 3:52 PM
Unknown Object (File)
Tue, Mar 11, 3:52 PM
Unknown Object (File)
Fri, Feb 28, 3:19 AM
Unknown Object (File)
Fri, Feb 28, 3:19 AM
Unknown Object (File)
Feb 23 2025, 7:41 PM
Unknown Object (File)
Feb 10 2025, 1:43 PM
Unknown Object (File)
Feb 6 2025, 7:52 PM
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