mirror of
https://github.com/oarkflow/mq.git
synced 2025-09-26 20:11:16 +08:00
update
This commit is contained in:
4
ctx.go
4
ctx.go
@@ -10,7 +10,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/oarkflow/errors"
|
"github.com/oarkflow/errors"
|
||||||
"github.com/oarkflow/xid"
|
"github.com/oarkflow/xid/wuid"
|
||||||
|
|
||||||
"github.com/oarkflow/mq/consts"
|
"github.com/oarkflow/mq/consts"
|
||||||
"github.com/oarkflow/mq/storage"
|
"github.com/oarkflow/mq/storage"
|
||||||
@@ -90,7 +90,7 @@ func GetPublisherID(ctx context.Context) (string, bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewID() string {
|
func NewID() string {
|
||||||
return xid.New().String()
|
return wuid.New().String()
|
||||||
}
|
}
|
||||||
|
|
||||||
func createTLSConnection(addr, certPath, keyPath string, caPath ...string) (net.Conn, error) {
|
func createTLSConnection(addr, certPath, keyPath string, caPath ...string) (net.Conn, error) {
|
||||||
|
Reference in New Issue
Block a user