Skip to content

Conversation

@S1nus
Copy link
Member

@S1nus S1nus commented Nov 22, 2022

Overview

Adding Context parameters to the CheckBlockAvailability, SubmitBlock, and RetrieveBlocks functions of the DataAvailabilityLayerClient object. Work-in-progress.

Goal is to enable requests to be cancelled easily, or allow them to have deadlines.

Resolves #354.

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2022

Codecov Report

Merging #623 (aa4d548) into main (d5e63f9) will decrease coverage by 0.13%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #623      +/-   ##
==========================================
- Coverage   55.59%   55.46%   -0.14%     
==========================================
  Files          50       50              
  Lines       10301    10301              
==========================================
- Hits         5727     5713      -14     
- Misses       3714     3723       +9     
- Partials      860      865       +5     
Impacted Files Coverage Δ
block/manager.go 65.34% <100.00%> (-3.47%) ⬇️
da/celestia/celestia.go 50.00% <100.00%> (ø)
da/celestia/mock/server.go 50.32% <100.00%> (ø)
da/grpc/grpc.go 73.13% <100.00%> (ø)
da/grpc/mockserv/mockserv.go 81.63% <100.00%> (ø)
da/mock/mock.go 79.54% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@tzdybal tzdybal removed the request for review from Wondertan November 30, 2022 20:38
@S1nus S1nus requested a review from a team November 30, 2022 20:46
@S1nus S1nus marked this pull request as ready for review November 30, 2022 20:47
Copy link
Member

@tzdybal tzdybal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, but applies in multiple places - please rename variable from context to ctx.

Copy link
Member

@tzdybal tzdybal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I left small comment regarding tests. Please rebase.

@tzdybal tzdybal requested review from nashqueue and tzdybal December 14, 2022 15:26
Copy link
Member

@tzdybal tzdybal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tzdybal tzdybal enabled auto-merge (squash) December 19, 2022 14:05
@tzdybal tzdybal merged commit d705b0d into main Dec 19, 2022
@tzdybal tzdybal deleted the connor/contexts branch December 19, 2022 14:10
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.

Add context to DA interfaces

5 participants