Skip to content

Conversation

@memoryliu
Copy link
Contributor

#52

@qiniu-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: memoryliu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov
Copy link

codecov bot commented Jul 3, 2020

Codecov Report

Merging #54 into master will increase coverage by 0.02%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #54      +/-   ##
==========================================
+ Coverage   51.01%   51.04%   +0.02%     
==========================================
  Files          31       32       +1     
  Lines        1578     1585       +7     
==========================================
+ Hits          805      809       +4     
- Misses        654      657       +3     
  Partials      119      119              
Impacted Files Coverage Δ
cmd/cover.go 33.33% <0.00%> (ø)
cmd/run.go 11.11% <0.00%> (ø)
pkg/cover/instrument.go 16.21% <ø> (ø)
cmd/build.go 52.63% <100.00%> (ø)
cmd/commonflags.go 100.00% <100.00%> (ø)
cmd/install.go 50.00% <100.00%> (ø)
pkg/cover/cover.go 56.02% <100.00%> (+0.15%) ⬆️
cmd/version.go 40.00% <0.00%> (ø)

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 f8b8fdb...2404045. Read the comment docs.

agentPort := "{{.AgentPort }}"
if agentPort != "" {
ln, err = net.Listen("tcp4", agentPort)
}else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

format

func addCommonFlags(cmdset *pflag.FlagSet) {
addBasicFlags(cmdset)
cmdset.StringVar(&mode, "mode", "count", "coverage mode: set, count, atomic")
cmdset.StringVar(&agentPort, "agentport", "", "specify fixed port for registered service")
Copy link
Collaborator

Choose a reason for hiding this comment

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

suggest to enhance usage, like:
the port to listen when the registered service starting, if not provided, it will listen a random one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

update:
specify fixed port for registered service communicate with goc server. if not provided, using a random port

@CarlJi
Copy link
Collaborator

CarlJi commented Jul 3, 2020

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants