// StartNonBlocking starts a new server in a goroutine
StartNonBlocking starts a new server in a goroutine
// StartNonBlocking starts a new server in a goroutine
func (s *server) StartNonBlocking() error {
	lis, err := net.Listen("tcp", fmt.Sprintf(":%v", s.config.Port))
	if err != nil {
		return err
	}
	s.listener = lis
	server, err := s.getGRPCServer()
	if err != nil {
		return err
	}
	s.srv = server
	daprinternal_pb.RegisterDaprInternalServer(server, s.api)
	dapr_pb.RegisterDaprServer(server, s.api)
	go func() {
		if err := server.Serve(lis); err != nil {
			log.Fatalf("gRPC serve error: %v", err)
		}
	}()
	return nil
}
func ( s * server ) StartNonBlocking ( ) error { lis , err := net . Listen ( " " , fmt . Sprintf ( " " , s . config . Port ) ) if err != nil { return err } s . listener = lis server , err := s . getGRPCServer ( ) if err != nil { return err } s . srv = server daprinternal_pb . RegisterDaprInternalServer ( server , s . api ) dapr_pb . RegisterDaprServer ( server , s . api ) go func ( ) { if err := server . Serve ( lis ) ; err != nil { log . Fatalf ( " " , err ) } } ( ) return nil }
StartNonBlocking starts a new server in a goroutine
StartNonBlocking starts a new server in a goroutine