mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
Replace sources/targets with links in messages
Replace the sources/targets concept with a links array in the message definitions. Fixes the problem of the actual links the messages applies to being ambigious when there's multiple sources and targets.
This commit is contained in:
1 parent
3be264c9a9
commit
c6fd46e3c3
2 files changed
+18
-31
No files matched your search
@@ -15,8 +15,7 @@ describe("lib/link/messages", function() {
|
||||
describe("class Request", function() {
|
||||
let testRequest = new link.Request({
|
||||
type: 'test',
|
||||
sources: 'source',
|
||||
targets: 'target',
|
||||
links: ['source-target'],
|
||||
});
|
||||
|
||||
describe(".attach()", function() {
|
||||
@@ -114,8 +113,7 @@ describe("lib/link/messages", function() {
|
||||
describe("class Event", function() {
|
||||
let testEvent = new link.Event({
|
||||
type: 'test',
|
||||
sources: 'source',
|
||||
targets: 'target',
|
||||
links: ['source-target'],
|
||||
});
|
||||
|
||||
describe(".attach()", function() {
|
||||
|
||||
Reference in new issue
Block a user