From 3440874807ea71ee599e5199eb40f24be3dcc9ac Mon Sep 17 00:00:00 2001
From: Loic Guegan <manzerbredes@mailbox.org>
Date: Sat, 15 Jul 2023 14:39:07 +0200
Subject: [PATCH] Minor changes

---
 src/publisher.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/src/publisher.c b/src/publisher.c
index 45a248e..c9f702e 100644
--- a/src/publisher.c
+++ b/src/publisher.c
@@ -74,25 +74,12 @@ int main (int argc, char *argv [])
     zmq_ctx_destroy (context);
 
     return 0;
-    // //  Prepare our context and publisher
-    // void *context = zmq_ctx_new ();
-    // void *publisher = zmq_socket (context, ZMQ_PUB);
-    // int rc = zmq_bind (publisher, "tcp://*:"STRINGIFY(PUBLISHER_PORT));
-    // assert (rc == 0);
-
-    // //  Initialize random number generator
-    // while (1) {
-    //     zmq_send (publisher, "Hello World", 5, 0);
-    //     printf("AA\n");
-    // }
-    // zmq_close (publisher);
-    // zmq_ctx_destroy (context);
-    return 0;
 }
 
 void publish(void *publisher, char *filepath, char* client, long int interval){
     printf("Publish!\n");
     char buffer[ZMQ_MSG_SIZE];
     sprintf(buffer,"%s\n%s\n%ld",ZMQ_TOKEN,__key,interval);
+    // TODO: Send every lines of the file
     zmq_send (publisher, buffer, ZMQ_MSG_SIZE, 0);
 }
\ No newline at end of file