You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-09-16 08:56:19 +02:00
MM-49703: Bump to Go 1.19 (#4489)
* MM-49703: Bump to Go 1.19 Also fix some gofmt issues https://mattermost.atlassian.net/browse/MM-49703 * Bump versions in go.mod * Update go.work as well * Bump GolangCI to 1.50.1 * Upgraded to new builder image
This commit is contained in:
@@ -422,7 +422,7 @@ func (pa *PluginAdapter) sendTeamMessage(event, teamID string, payload map[strin
|
||||
EnsureUsers: ensureUserIDs,
|
||||
}
|
||||
|
||||
pa.sendMessageToCluster("websocket_message", clusterMessage)
|
||||
pa.sendMessageToCluster(clusterMessage)
|
||||
}()
|
||||
|
||||
pa.sendTeamMessageSkipCluster(event, teamID, payload)
|
||||
@@ -447,7 +447,7 @@ func (pa *PluginAdapter) sendBoardMessage(teamID, boardID string, payload map[st
|
||||
EnsureUsers: ensureUserIDs,
|
||||
}
|
||||
|
||||
pa.sendMessageToCluster("websocket_message", clusterMessage)
|
||||
pa.sendMessageToCluster(clusterMessage)
|
||||
}()
|
||||
|
||||
pa.sendBoardMessageSkipCluster(teamID, boardID, payload, ensureUserIDs...)
|
||||
@@ -490,7 +490,7 @@ func (pa *PluginAdapter) BroadcastCategoryChange(category model.Category) {
|
||||
UserID: category.UserID,
|
||||
}
|
||||
|
||||
pa.sendMessageToCluster("websocket_message", clusterMessage)
|
||||
pa.sendMessageToCluster(clusterMessage)
|
||||
}()
|
||||
|
||||
pa.sendUserMessageSkipCluster(websocketActionUpdateCategory, payload, category.UserID)
|
||||
@@ -514,7 +514,7 @@ func (pa *PluginAdapter) BroadcastCategoryReorder(teamID, userID string, categor
|
||||
UserID: userID,
|
||||
}
|
||||
|
||||
pa.sendMessageToCluster("websocket_message", clusterMessage)
|
||||
pa.sendMessageToCluster(clusterMessage)
|
||||
}()
|
||||
|
||||
pa.sendUserMessageSkipCluster(message.Action, payload, userID)
|
||||
@@ -540,7 +540,7 @@ func (pa *PluginAdapter) BroadcastCategoryBoardsReorder(teamID, userID, category
|
||||
UserID: userID,
|
||||
}
|
||||
|
||||
pa.sendMessageToCluster("websocket_message", clusterMessage)
|
||||
pa.sendMessageToCluster(clusterMessage)
|
||||
}()
|
||||
|
||||
pa.sendUserMessageSkipCluster(message.Action, payload, userID)
|
||||
@@ -568,7 +568,7 @@ func (pa *PluginAdapter) BroadcastCategoryBoardChange(teamID, userID string, boa
|
||||
UserID: userID,
|
||||
}
|
||||
|
||||
pa.sendMessageToCluster("websocket_message", clusterMessage)
|
||||
pa.sendMessageToCluster(clusterMessage)
|
||||
}()
|
||||
|
||||
pa.sendUserMessageSkipCluster(websocketActionUpdateCategoryBoard, utils.StructToMap(message), userID)
|
||||
|
@@ -15,7 +15,8 @@ type ClusterMessage struct {
|
||||
EnsureUsers []string
|
||||
}
|
||||
|
||||
func (pa *PluginAdapter) sendMessageToCluster(id string, clusterMessage *ClusterMessage) {
|
||||
func (pa *PluginAdapter) sendMessageToCluster(clusterMessage *ClusterMessage) {
|
||||
const id = "websocket_message"
|
||||
b, err := json.Marshal(clusterMessage)
|
||||
if err != nil {
|
||||
pa.logger.Error("couldn't get JSON bytes from cluster message",
|
||||
|
Reference in New Issue
Block a user