Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DIDComm Connector
Manage
Activity
Members
Labels
Plan
Issues
29
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
xfsc
Common Services
DIDComm Connector
Commits
c19582d1
Commit
c19582d1
authored
11 months ago
by
Steffen Schulze
Browse files
Options
Downloads
Patches
Plain Diff
topic fix
parent
7b66c784
No related branches found
Branches containing commit
No related tags found
1 merge request
!10
Refactoring
Pipeline
#42093
passed with warnings with stages
in 3 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
protocol/cloudEvent.go
+3
-4
3 additions, 4 deletions
protocol/cloudEvent.go
protocol/coordinateMediation.go
+1
-1
1 addition, 1 deletion
protocol/coordinateMediation.go
with
4 additions
and
5 deletions
protocol/cloudEvent.go
+
3
−
4
View file @
c19582d1
...
...
@@ -24,9 +24,9 @@ func SendMessage(message map[string]interface{}, mediatee *database.Mediatee) er
switch
config
.
CurrentConfiguration
.
CloudForwarding
.
Protocol
{
case
config
.
HTTP
:
return
sendCloudEvent
(
message
,
mediatee
)
return
sendCloudEvent
(
message
,
mediatee
,
mediatee
.
Topic
)
case
config
.
NATS
:
return
sendCloudEvent
(
message
,
mediatee
)
return
sendCloudEvent
(
message
,
mediatee
,
mediatee
.
Topic
)
case
config
.
HYBRID
:
// implement hybrid mode if cloud event provider supports it
return
errors
.
New
(
"hybrid mode not supported: message will not be sent"
)
...
...
@@ -116,8 +116,7 @@ func ReceiveMessage(mediator *mediator.Mediator) {
wg
.
Wait
()
}
func
sendCloudEvent
(
message
any
,
mediatee
*
database
.
Mediatee
)
(
err
error
)
{
topic
:=
mediatee
.
Topic
func
sendCloudEvent
(
message
any
,
mediatee
*
database
.
Mediatee
,
topic
string
)
(
err
error
)
{
if
topic
==
""
{
topic
=
"default-http"
}
...
...
This diff is collapsed.
Click to expand it.
protocol/coordinateMediation.go
+
1
−
1
View file @
c19582d1
...
...
@@ -398,7 +398,7 @@ func (h *CoordinateMediation) handleMediationRequest(message didcomm.Message, be
Did
:
mediatee
.
RoutingKey
,
}
err
=
sendCloudEvent
(
inv
,
mediatee
)
err
=
sendCloudEvent
(
inv
,
mediatee
,
config
.
CurrentConfiguration
.
CloudForwarding
.
Nats
.
Topic
)
return
response
,
err
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment