senecajs / seneca

A microservices toolkit for Node.js.
http://senecajs.org
MIT License
3.95k stars 314 forks source link

make this unique with a counter #834

Closed github-actions[bot] closed 4 years ago

github-actions[bot] commented 4 years ago

make this unique with a counter

https://github.com/senecajs/seneca/blob/1c97c5fba6f4e3c61b037be42656036a83321b36/lib/api.js#L659

    //var sd = Plugins.make_delegate(self, {
    // TODO: review - this feels like a hack
    // perhaps we should instantiate a virtual plugin to represent the client?
    // ... but is this necessary at all?
    var task_res = self.order.plugin.task.delegate.exec({
      ctx: {
        seneca: self,
      },
      data: {
        plugin: {
          // TODO: make this unique with a counter
          name: 'seneca_internal_client',
          tag: void 0,
        },
      },
    })

    var sd = task_res.out.delegate

    var sendclient

    var transport_client = function transport_client(msg, reply, meta) {
ndex ab5d8b8e..6c31d58f 100644
++ b/lib/errors.js
github-actions[bot] commented 4 years ago

Closed in 1c97c5fba6f4e3c61b037be42656036a83321b36