Merge branch 'main' of github.com:anytypeio/any-sync into any-handshake

This commit is contained in:
Sergey Cherepanov 2023-02-15 22:29:11 +03:00
commit ea9d101622
No known key found for this signature in database
GPG Key ID: 87F8EDE8FBDF637C

View File

@ -101,6 +101,13 @@ func (s *BaseDrpcServer) serveConn(ctx context.Context, conn net.Conn) {
}
}
func (s *BaseDrpcServer) ListenAddrs() (addrs []net.Addr) {
for _, list := range s.listeners {
addrs = append(addrs, list.Addr())
}
return
}
func (s *BaseDrpcServer) Close(ctx context.Context) (err error) {
if s.cancel != nil {
s.cancel()