From 6f5ab385bfa6fc728f546d385d27c6b6eb29c9a9 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Wed, 30 Oct 2019 11:59:36 +0000
Subject: [PATCH] Remove old broken file

---
 submission/conn.go | 40 ----------------------------------------
 1 file changed, 40 deletions(-)
 delete mode 100644 submission/conn.go

diff --git a/submission/conn.go b/submission/conn.go
deleted file mode 100644
index 37a9d74..0000000
--- a/submission/conn.go
+++ /dev/null
@@ -1,40 +0,0 @@
-package submission
-
-import (
-	"context"
-
-	ippb "git.autistici.org/ai3/tools/iprep/proto"
-	"google.golang.org/grpc"
-)
-
-type client struct {
-	conn *grpc.ClientConn
-	stub ippb.SubmissionClient
-}
-
-func newClient(addr string) (*client, error) {
-	conn, err := grpc.Dial(addr)
-	if err != nil {
-		return nil, err
-	}
-	return &client{
-		conn: conn,
-		stub: ippb.NewSubmissionClient(conn),
-	}, nil
-}
-
-func (c *client) Close() {
-	c.conn.Close()
-}
-
-func (c *client) submit(ctx context.Context, ev *ippb.Event, aggr *ippb.Aggregate) error {
-	var req ippb.SubmitRequest
-	if ev != nil {
-		req.Events = append(req.Events, ev)
-	}
-	if aggr != nil {
-		req.Aggregates = append(req.Aggregates, aggr)
-	}
-	_, err := c.stub.Submit(ctx, &req)
-	return err
-}
-- 
GitLab