// Run starts the Driver server
Run starts the Driver server
// Run starts the Driver server
func (s *Server) Run() error {
	lis, err := net.Listen("tcp", s.hostPort)
	if err != nil {
		s.logger.Bg().Fatal("Unable to create http listener", zap.Error(err))
	}
	RegisterDriverServiceServer(s.server, s)
	err = s.server.Serve(lis)
	if err != nil {
		s.logger.Bg().Fatal("Unable to start gRPC server", zap.Error(err))
	}
	return err
}
func ( s * Server ) Run ( ) error { lis , err := net . Listen ( " " , s . hostPort ) if err != nil { s . logger . Bg ( ) . Fatal ( " " , zap . Error ( err ) ) } RegisterDriverServiceServer ( s . server , s ) err = s . server . Serve ( lis ) if err != nil { s . logger . Bg ( ) . Fatal ( " " , zap . Error ( err ) ) } return err }
Run starts the Driver server
Run starts the Driver server