mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-05 16:06:55 +08:00
feat: add example
This commit is contained in:
2
ctx.go
2
ctx.go
@@ -118,8 +118,6 @@ func GetPublisherID(ctx context.Context) (string, bool) {
|
||||
// Helper function to convert HeaderMap to a regular map
|
||||
func getMapAsRegularMap(hd *HeaderMap) map[string]string {
|
||||
result := make(map[string]string)
|
||||
hd.mu.RLock()
|
||||
defer hd.mu.RUnlock()
|
||||
for key, value := range hd.headers {
|
||||
result[key] = value
|
||||
}
|
||||
|
Reference in New Issue
Block a user