mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
rpc: fix typo example code (#20284)
This commit is contained in:
parent
f8a95d996f
commit
9504c5c360
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ An example server which uses the JSON codec:
|
|||
|
||||
calculator := new(CalculatorService)
|
||||
server := NewServer()
|
||||
server.RegisterName("calculator", calculator")
|
||||
server.RegisterName("calculator", calculator)
|
||||
|
||||
l, _ := net.ListenUnix("unix", &net.UnixAddr{Net: "unix", Name: "/tmp/calculator.sock"})
|
||||
for {
|
||||
|
|
|
|||
Loading…
Reference in a new issue