Commit 9504c5c3 authored by Jorropo's avatar Jorropo Committed by Péter Szilágyi

rpc: fix typo example code (#20284)

parent f8a95d99
...@@ -73,7 +73,7 @@ An example server which uses the JSON codec: ...@@ -73,7 +73,7 @@ An example server which uses the JSON codec:
calculator := new(CalculatorService) calculator := new(CalculatorService)
server := NewServer() server := NewServer()
server.RegisterName("calculator", calculator") server.RegisterName("calculator", calculator)
l, _ := net.ListenUnix("unix", &net.UnixAddr{Net: "unix", Name: "/tmp/calculator.sock"}) l, _ := net.ListenUnix("unix", &net.UnixAddr{Net: "unix", Name: "/tmp/calculator.sock"})
for { for {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment