summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--endpoint_ws.go1
-rw-r--r--ws_connection.go4
-rw-r--r--wsmsg_choose.go3
-rw-r--r--wsmsg_hello.go3
-rw-r--r--wsmsg_unchoose.go3
5 files changed, 1 insertions, 13 deletions
diff --git a/endpoint_ws.go b/endpoint_ws.go
index 2ea0a2a..4bf2319 100644
--- a/endpoint_ws.go
+++ b/endpoint_ws.go
@@ -161,7 +161,6 @@ func handleWs(w http.ResponseWriter, req *http.Request) {
err = handleConn(
req.Context(),
c,
- session,
userID,
)
if err != nil {
diff --git a/ws_connection.go b/ws_connection.go
index c407a70..63ae86b 100644
--- a/ws_connection.go
+++ b/ws_connection.go
@@ -50,7 +50,6 @@ var usemCount int64 /* atomic */
func handleConn(
ctx context.Context,
c *websocket.Conn,
- session string,
userID string,
) (retErr error) {
send := make(chan string, config.Perf.SendQ)
@@ -306,7 +305,6 @@ func handleConn(
reportError,
mar,
userID,
- session,
)
if err != nil {
return err
@@ -318,7 +316,6 @@ func handleConn(
reportError,
mar,
userID,
- session,
&userCourseGroups,
)
if err != nil {
@@ -331,7 +328,6 @@ func handleConn(
reportError,
mar,
userID,
- session,
&userCourseGroups,
)
if err != nil {
diff --git a/wsmsg_choose.go b/wsmsg_choose.go
index 92f6453..bde9bb8 100644
--- a/wsmsg_choose.go
+++ b/wsmsg_choose.go
@@ -39,11 +39,8 @@ func messageChooseCourse(
reportError reportErrorT,
mar []string,
userID string,
- session string,
userCourseGroups *userCourseGroupsT,
) error {
- _ = session
-
if atomic.LoadUint32(&state) != 2 {
err := writeText(ctx, c, "E :Course selections are not open")
if err != nil {
diff --git a/wsmsg_hello.go b/wsmsg_hello.go
index b92dde9..f0bc191 100644
--- a/wsmsg_hello.go
+++ b/wsmsg_hello.go
@@ -36,9 +36,8 @@ func messageHello(
reportError reportErrorT,
mar []string,
userID string,
- session string,
) error {
- _, _ = mar, session
+ _ = mar
select {
case <-ctx.Done():
diff --git a/wsmsg_unchoose.go b/wsmsg_unchoose.go
index 07cb18b..e3a7ec6 100644
--- a/wsmsg_unchoose.go
+++ b/wsmsg_unchoose.go
@@ -35,11 +35,8 @@ func messageUnchooseCourse(
reportError reportErrorT,
mar []string,
userID string,
- session string,
userCourseGroups *userCourseGroupsT,
) error {
- _ = session
-
if atomic.LoadUint32(&state) != 2 {
err := writeText(ctx, c, "E :Course selections are not open")
if err != nil {