Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ConnectionType(ctx) for called methods to use #118

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Jul 31, 2024

Use case for this: lotus-gateway should be able to decide which methods are only available via websockets but we currently don't have a straightforward way to do this without snooping on the wire. This is a prerequisite for filecoin-project/lotus#11153 which I'm thinking is the right thing to do for stateful calls that we can't properly meter as per filecoin-project/lotus#11589.

@rvagg rvagg requested review from masih and Stebalien July 31, 2024 04:28
@codecov-commenter
Copy link

codecov-commenter commented Jul 31, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (master@2bb4fbb). Learn more about missing BASE report.

Files Patch % Lines
server.go 83.33% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #118   +/-   ##
=========================================
  Coverage          ?   71.72%           
=========================================
  Files             ?       11           
  Lines             ?     1510           
  Branches          ?        0           
=========================================
  Hits              ?     1083           
  Misses            ?      329           
  Partials          ?       98           
Files Coverage Δ
server.go 76.92% <83.33%> (ø)

@rvagg
Copy link
Member Author

rvagg commented Jul 31, 2024

filecoin-project/lotus#12327 here's the use-case for it

rpc_test.go Outdated Show resolved Hide resolved
server.go Outdated Show resolved Hide resolved
server.go Outdated Show resolved Hide resolved
server.go Outdated Show resolved Hide resolved
rpc_test.go Show resolved Hide resolved
rvagg added a commit to filecoin-project/lotus that referenced this pull request Aug 1, 2024
rvagg added a commit to filecoin-project/lotus that referenced this pull request Aug 1, 2024
@rvagg rvagg merged commit cd4bed8 into master Aug 5, 2024
7 checks passed
@rvagg rvagg deleted the rvagg/connection-type branch August 5, 2024 10:27
rvagg added a commit to filecoin-project/lotus that referenced this pull request Aug 5, 2024
rvagg added a commit to filecoin-project/lotus that referenced this pull request Aug 5, 2024
rvagg added a commit to filecoin-project/lotus that referenced this pull request Aug 8, 2024
rvagg added a commit to filecoin-project/lotus that referenced this pull request Aug 9, 2024
rjan90 pushed a commit to filecoin-project/lotus that referenced this pull request Aug 12, 2024
ribasushi pushed a commit to ribasushi/ci-abusing-lotus-fork that referenced this pull request Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants