Skip to content

modify md format based on change of grpc md format#149

Open
treetty wants to merge 1 commit into
taskgraph:masterfrom
treetty:grpcmdformat
Open

modify md format based on change of grpc md format#149
treetty wants to merge 1 commit into
taskgraph:masterfrom
treetty:grpcmdformat

Conversation

@treetty

@treetty treetty commented Jan 1, 2016

Copy link
Copy Markdown

No description provided.

@plutoshe

plutoshe commented Jan 5, 2016

Copy link
Copy Markdown
Contributor

Hi, @treetty , could you provide the reference of the change?

@treetty

treetty commented Jan 5, 2016

Copy link
Copy Markdown
Author

@treetty

treetty commented Jan 5, 2016

Copy link
Copy Markdown
Author

type MD map[string][]string
line 76

@plutoshe

plutoshe commented Jan 5, 2016

Copy link
Copy Markdown
Contributor

It is better to use this format(https://github.com/grpc/grpc-go/blob/master/metadata/metadata.go#L76)

Comment thread framework/data_request.go

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As reference metioned, maybe better use

md := metadata.New(map[string]string{
        "taskID": strconv.FormatUint(f.taskID, 10),
        "epoch":  strconv.FormatUint(f.epoch, 10),
    })

@treetty

treetty commented Jan 5, 2016

Copy link
Copy Markdown
Author

sure.
you may also want to review the pr that i made in bwmf.
also, i m not quite sure about how to run a bwmf task on etcd yet.
if you can help me with that, it would be great! @plutoshe

@xiaoyunwu

@treetty

treetty commented Jan 5, 2016

Copy link
Copy Markdown
Author

thank you for commenting on this! @plutoshe

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.

2 participants