mirror of
https://github.com/status-im/op-geth.git
synced 2025-02-15 00:08:00 +00:00
rpc: fix typo example code (#20284)
This commit is contained in:
parent
f8a95d996f
commit
9504c5c360
@ -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…
x
Reference in New Issue
Block a user