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

adjust highway context #148

Merged
merged 1 commit into from
Mar 28, 2018
Merged

Conversation

wangkirin
Copy link
Contributor

Signed-off-by: WangQilin qilin.wang@huawei.com

@tianxiaoliang
Copy link
Member

rename "golang.org/x/net/context" to "context"

@coveralls
Copy link

coveralls commented Mar 27, 2018

Coverage Status

Coverage decreased (-0.1%) to 62.647% when pulling d8d5493 on wangkirin:metadata into 0959492 on ServiceComb:master.

@wangkirin wangkirin force-pushed the metadata branch 2 times, most recently from 74917ab to d8d5493 Compare March 27, 2018 08:38
@wangkirin
Copy link
Contributor Author

@tianxiaoliang already changed~~

@@ -26,7 +27,7 @@ func TestRPCInvoker_InvokeFailinChainInit(t *testing.T) {
config.GlobalDefinition = &model.GlobalCfg{}
invoker := core.NewRPCInvoker(core.ChainName(""))
replyOne := &helloworld.HelloReply{}
ctx := metadata.NewContext(context.Background(), map[string]string{
ctx := context.WithValue(context.Background(), highway.AttachmentsKey{}, map[string]string{
Copy link
Member

Choose a reason for hiding this comment

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

highway.AttachmentsKey{}
rest must not call highway package, move this method to util package

Signed-off-by: WangQilin <qilin.wang@huawei.com>
@wangkirin
Copy link
Contributor Author

@tianxiaoliang already finished the changes requested

@tianxiaoliang tianxiaoliang merged commit 1e3a4af into go-chassis:master Mar 28, 2018
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.

None yet

3 participants