This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
go-rabbitmq
mirror of
https://github.com/wagslane/go-rabbitmq
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
33
Wiki
Activity
Browse Source
Merge branch 'wagslane:main' into main
pull/105/head
Vishal Dubey
3 years ago
committed by
GitHub
parent
1b2d3b05a7
5c6bcb5027
commit
526fb50c56
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
4 changed files
with
5 additions
and
7 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
.github/workflows/tests.yml
+1
-1
go.mod
+2
-1
internal/channelmanager/safe_wraps.go
+0
-3
internal/dispatcher/dispatcher_test.go
+ 2
- 2
.github/workflows/tests.yml
View File
@ -12,10 +12,10 @@ jobs:
GOPROXY
:
"https://proxy.golang.org,direct"
GOPROXY
:
"https://proxy.golang.org,direct"
steps:
steps:
-
name
:
Set up Go
1.18
-
name
:
Set up Go
uses
:
actions/setup-go@v2
uses
:
actions/setup-go@v2
with:
with:
go-version
:
1.18
go-version
:
"1.20"
id
:
go
id
:
go
-
name
:
Check out code into the Go module directory
-
name
:
Check out code into the Go module directory
+ 1
- 1
go.mod
View File
@ -1,5 +1,5 @@
module
github
.
com
/
wagslane
/
go
-
rabbitmq
module
github
.
com
/
wagslane
/
go
-
rabbitmq
go
1.
17
go
1.
20
require
github
.
com
/
rabbitmq
/
amqp091
-
go
v1
.
5.0
require
github
.
com
/
rabbitmq
/
amqp091
-
go
v1
.
5.0
+ 2
- 1
internal/channelmanager/safe_wraps.go
View File
@ -144,7 +144,8 @@ func (chanManager *ChannelManager) PublishSafe(
chanManager
.
channelMux
.
RLock
(
)
chanManager
.
channelMux
.
RLock
(
)
defer
chanManager
.
channelMux
.
RUnlock
(
)
defer
chanManager
.
channelMux
.
RUnlock
(
)
return
chanManager
.
channel
.
Publish
(
return
chanManager
.
channel
.
PublishWithContext
(
context
.
Background
(
)
,
exchange
,
exchange
,
key
,
key
,
mandatory
,
mandatory
,
+ 0
- 3
internal/dispatcher/dispatcher_test.go
View File
@ -7,9 +7,6 @@ import (
func
TestNewDispatcher
(
t
*
testing
.
T
)
{
func
TestNewDispatcher
(
t
*
testing
.
T
)
{
d
:=
NewDispatcher
(
)
d
:=
NewDispatcher
(
)
if
d
==
nil
{
t
.
Error
(
"Dispatcher is nil"
)
}
if
d
.
subscribers
==
nil
{
if
d
.
subscribers
==
nil
{
t
.
Error
(
"Dispatcher subscribers is nil"
)
t
.
Error
(
"Dispatcher subscribers is nil"
)
}
}
Write
Preview
Loading…
Cancel
Save