Skip to content

Commit

Permalink
Merge branch 'master' of github.com:abreits/amqp-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
abreits committed Oct 9, 2019
2 parents 92a5008 + 8d9f3e6 commit fb19802
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/amqp-ts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export declare class Exchange {
constructor(connection: Connection, name: string, type?: string, options?: Exchange.DeclarationOptions);
_initialize(): void;
/**
* deprecated, use 'exchange.send(message: Message)' instead
* deprecated, use 'exchange.send(message: Message, routingKey?: string)' instead
*/
publish(content: any, routingKey?: string, options?: any): void;
send(message: Message, routingKey?: string): void;
Expand Down Expand Up @@ -158,7 +158,7 @@ export declare class Queue {
* deprecated, use 'queue.send(message: Message)' instead
*/
publish(content: any, options?: any): void;
send(message: Message, routingKey?: string): void;
send(message: Message): void;
rpc(requestParameters: any): Promise<Message>;
prefetch(count: number): void;
recover(): Promise<void>;
Expand Down
2 changes: 1 addition & 1 deletion lib/amqp-ts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/amqp-ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ export class Exchange {
}

/**
* deprecated, use 'exchange.send(message: Message)' instead
* deprecated, use 'exchange.send(message: Message, routingKey?: string)' instead
*/
publish(content: any, routingKey = "", options: any = {}): void {
if (typeof content === "string") {
Expand Down Expand Up @@ -838,8 +838,8 @@ export class Queue {
}
}

send(message: Message, routingKey = ""): void {
message.sendTo(this, routingKey);
send(message: Message): void {
message.sendTo(this);
}

rpc(requestParameters: any): Promise<Message> {
Expand Down

0 comments on commit fb19802

Please sign in to comment.