From 47fb0696ac58d1249b625a185dfa7f3f5743cc1b Mon Sep 17 00:00:00 2001
From: joshemb <josh@elixxir.io>
Date: Mon, 19 Sep 2022 16:15:27 -0700
Subject: [PATCH] Clean up parameter type repetition

---
 bindings/channels.go | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/bindings/channels.go b/bindings/channels.go
index 67bf7f994..e3e8b3a1d 100644
--- a/bindings/channels.go
+++ b/bindings/channels.go
@@ -777,9 +777,9 @@ type EventModel interface {
 	//     Sent      |  0
 	//     Delivered |  1
 	//     Failed    |  2
-	ReceiveMessage(channelID []byte, messageID []byte,
-		senderUsername string, text string, timestamp int64,
-		lease int64, roundId int64, status int64)
+	ReceiveMessage(channelID, messageID []byte,
+		senderUsername, text string,
+		timestamp, lease, roundId, status int64)
 
 	// ReceiveReply is called whenever a message is received which is a reply
 	// on a given channel. It may be called multiple times on the same message,
@@ -801,10 +801,9 @@ type EventModel interface {
 	//     Sent      |  0
 	//     Delivered |  1
 	//     Failed    |  2
-	ReceiveReply(channelID []byte, messageID []byte,
-		reactionTo []byte, senderUsername string,
-		text string, timestamp int64, lease int64,
-		roundId int64, status int64)
+	ReceiveReply(channelID, messageID, reactionTo []byte,
+		senderUsername, text string,
+		timestamp, lease, roundId, status int64)
 
 	// ReceiveReaction is called whenever a reaction to a message is received
 	// on a given channel. It may be called multiple times on the same reaction,
@@ -826,10 +825,9 @@ type EventModel interface {
 	//     Sent      |  0
 	//     Delivered |  1
 	//     Failed    |  2
-	ReceiveReaction(channelID []byte, messageID []byte,
-		reactionTo []byte, senderUsername string,
-		reaction string, timestamp int64, lease int64,
-		roundId int64, status int64)
+	ReceiveReaction(channelID, messageID, reactionTo []byte,
+		senderUsername, reaction string,
+		timestamp, lease, roundId, status int64)
 
 	// UpdateSentStatus is called whenever the sent status of a message
 	// has changed.
-- 
GitLab