✨ Basic queue for processing
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
package grpc
|
||||
|
||||
import (
|
||||
"git.solsynth.dev/hydrogen/paperclip/pkg/proto"
|
||||
"net"
|
||||
|
||||
"github.com/spf13/viper"
|
||||
"google.golang.org/grpc"
|
||||
health "google.golang.org/grpc/health/grpc_health_v1"
|
||||
"google.golang.org/grpc/reflection"
|
||||
"net"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
proto.UnimplementedAttachmentsServer
|
||||
}
|
||||
|
||||
var S *grpc.Server
|
||||
@@ -18,7 +17,6 @@ var S *grpc.Server
|
||||
func NewGRPC() {
|
||||
S = grpc.NewServer()
|
||||
|
||||
proto.RegisterAttachmentsServer(S, &Server{})
|
||||
health.RegisterHealthServer(S, &Server{})
|
||||
|
||||
reflection.Register(S)
|
||||
|
Reference in New Issue
Block a user