Compare commits

..

2 Commits

Author SHA1 Message Date
0f28e3d11b v0.0.618 remove deprecated param 'user_id' from scn.send()
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m46s
2025-12-06 22:20:02 +01:00
55f80432bb v0.0.617
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m18s
2025-12-06 11:54:36 +01:00
4 changed files with 9 additions and 6 deletions

View File

@@ -97,3 +97,9 @@ func (mm *MultiMutex[TKey]) Get(key TKey) sync.Locker {
lck := mm.mutextMap.GetAndSetIfNotContainsFunc(key, NewCASMutex)
return lck
}
// GetCAS returns the underlying CASMutex
func (mm *MultiMutex[TKey]) GetCAS(key TKey) *CASMutex {
lck := mm.mutextMap.GetAndSetIfNotContainsFunc(key, NewCASMutex)
return lck
}

View File

@@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.616"
const GoextVersion = "0.0.618"
const GoextVersionTimestamp = "2025-12-06T11:53:59+0100"
const GoextVersionTimestamp = "2025-12-06T22:20:02+0100"

View File

@@ -1,13 +1,11 @@
package scn
type Connection struct {
uid string
token string
}
func New(userid string, token string) *Connection {
func New(token string) *Connection {
return &Connection{
uid: userid,
token: token,
}
}

View File

@@ -88,7 +88,6 @@ func (c *MessageBuilder) Send(ctx context.Context) (MessageResponse, error) {
body := langext.H{}
body["user_id"] = c.conn.uid
body["key"] = c.conn.token
if c.channel != nil {