Change the default credits for the RPC link to be more reasonable (1000) (#54)
Use a higher link credit count by default for the rpc link (1000)
This commit is contained in:
Родитель
75c6f5776f
Коммит
7e6517e7fe
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## `v3.2.0`
|
||||
- Change the default credits for the RPC link to be more reasonable (1000)
|
||||
[PR#54](https://github.com/Azure/azure-amqp-common-go/pull/54)
|
||||
|
||||
## `v3.1.2`
|
||||
- Fixing a potential race condition when an RPC link is shut down while still sending requests
|
||||
or handling responses.
|
||||
|
|
|
@ -40,9 +40,10 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
replyPostfix = "-reply-to-"
|
||||
statusCodeKey = "status-code"
|
||||
descriptionKey = "status-description"
|
||||
replyPostfix = "-reply-to-"
|
||||
statusCodeKey = "status-code"
|
||||
descriptionKey = "status-description"
|
||||
defaultReceiverCredits = 1000
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -148,6 +149,7 @@ func NewLinkWithSession(session *amqp.Session, address string, opts ...LinkOptio
|
|||
receiverOpts := []amqp.LinkOption{
|
||||
amqp.LinkSourceAddress(address),
|
||||
amqp.LinkTargetAddress(link.clientAddress),
|
||||
amqp.LinkCredit(defaultReceiverCredits),
|
||||
}
|
||||
|
||||
if link.sessionID != nil {
|
||||
|
|
Загрузка…
Ссылка в новой задаче