Open ont opened 6 years ago
@ont seems that the length is limited, try to use a shorter one. If you need to add namespaces for the services, use Env()
But seems that Bind
doesn't have any limitations for service name length:
https://github.com/zenhotels/astranet/blob/master/cli/local2astra/main.go#L110
...
var appName = flag.String("name", uuid.NewV4().String(), "name of application to publish")
...
var fwdService, fwdErr = astraNet.Bind("", *appName)
As I can see this cli program expose local non-astranet service to astranet network as uuid4
-named service.
And is it supposed to be accessed via Dial
call?
@ont thanks for the issue. Let me check and I will be back.
@biinilya ping, wake up!
Hello, I am trying to write simple client and server but got strange error with wrong server address name. Here is code for server:
... and here is code for client:
Server starts without errors, but for client I got this output:
Pay attention to the error in
echo_serveo
(wrong last lettero
instead ofr
). Do I use the name of the service correctly for themtx.Bind
andmtx.Dial
?