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

Change send action #1544

Merged
merged 9 commits into from
Oct 15, 2019
Merged

Conversation

koseoyoung
Copy link
Contributor

works on #1533

I measured time consumed difference in SendAction between this change. And it turned out to be not a huge overhead even though not using dispatcher, it handles action synchronously. (2 or 3 times but microsecond unit) By this change user can directly know whether it fails to put their action into actpool or not.

@koseoyoung koseoyoung requested a review from a team as a code owner October 10, 2019 23:49
api/api.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Oct 14, 2019

Codecov Report

Merging #1544 into master will decrease coverage by 0.02%.
The diff coverage is 25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1544      +/-   ##
==========================================
- Coverage   55.05%   55.02%   -0.03%     
==========================================
  Files         149      149              
  Lines       13155    13157       +2     
==========================================
- Hits         7242     7240       -2     
- Misses       4978     4980       +2     
- Partials      935      937       +2
Impacted Files Coverage Δ
api/api.go 54.8% <25%> (-0.15%) ⬇️
db/trie/extensionnode.go 57.62% <0%> (-1.7%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 21407cd...f4698eb. Read the comment docs.

@@ -302,22 +298,24 @@ func (api *Server) GetServerMeta(ctx context.Context,
}

// SendAction is the API to send an action to blockchain.
func (api *Server) SendAction(ctx context.Context, in *iotexapi.SendActionRequest) (res *iotexapi.SendActionResponse, err error) {
func (api *Server) SendAction(ctx context.Context, in *iotexapi.SendActionRequest) (*iotexapi.SendActionResponse, error) {

Choose a reason for hiding this comment

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

line is 122 characters (from lll)

var selp action.SealedEnvelope
var err error

Choose a reason for hiding this comment

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

declarations should never be cuddled (from wsl)

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