Skip to content

Commit 630ad69

Browse files
makefriend8MarsZhang
andauthored
enable to run client/server example on the same machine (#76)
* Compatible with windows vs2017 * It can run on a single machine Co-authored-by: MarsZhang <6671605@è[email protected]>
1 parent b5181ce commit 630ad69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/sample_client.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ int main() {
6868
StartEntrySpan entry_span(tracing_context, "sample_op1");
6969

7070
{
71-
std::string target_address = "remote:8082";
71+
std::string target_address = "127.0.0.1:8081";
7272
StartExitSpan exit_span(tracing_context, entry_span.get(), "sample_op2");
7373
exit_span.get()->setPeer(target_address);
7474

75-
httplib::Client cli("remote", 8082);
75+
httplib::Client cli("127.0.0.1", 8081);
7676
httplib::Headers headers = {
7777
{kPropagationHeader.data(), *tracing_context->createSW8HeaderValue(
7878
exit_span.get(), target_address)}};

0 commit comments

Comments
 (0)