Giter VIP home page Giter VIP logo

Comments (6)

blatyo avatar blatyo commented on September 3, 2024

What version of Elixir, conduit, and conduit_amqp are you using?
Can you share your application.ex start function?

https://github.com/conduitframework/conduit/blob/95c67209aa/lib/conduit/broker.ex#L83

This get's passed to child_spec/2 on the adapter module, not directly to start_link.

https://github.com/conduitframework/conduit_amqp/blob/master/lib/conduit_amqp.ex#L31-L37

The list of arguments here, are individual arguments. So a list of 4, is equivalent to four arguments.

from conduit.

timwis avatar timwis commented on September 3, 2024

I'm on elixir v1.8.1, conduit ~> 0.12, conduit_amqp ~> 0.4.

  def start(_type, _args) do
    # List all child processes to be supervised
    children = [
      # Start the Ecto repository
      DataDigest.Repo,
      # Start the endpoint when the application starts
      DataDigestWeb.Endpoint,
      # Starts a worker by calling: DataDigest.Worker.start_link(arg)
      # {DataDigest.Worker, arg},
      {DataDigestQueue.Broker, []}
    ]

    # See https://hexdocs.pm/elixir/Supervisor.html
    # for other strategies and supported options
    opts = [strategy: :one_for_one, name: DataDigest.Supervisor]
    Supervisor.start_link(children, opts)
  end

from conduit.

blatyo avatar blatyo commented on September 3, 2024

Can you provide the specific versions your using: mix deps

from conduit.

blatyo avatar blatyo commented on September 3, 2024

I suspect the version of conduit and conduit_amqp you're using are not compatible with each other. Newest version of conduit is 0.12.10 and newest of conduit_amqp is 0.6.3. If something said you should use ~> 0.4, that should get updated.

from conduit.

blatyo avatar blatyo commented on September 3, 2024

Also, worth noting that there is an example app you can compare against: https://github.com/conduitframework/conduit_amqp_example

from conduit.

timwis avatar timwis commented on September 3, 2024

Sure, mix.deps says conduit 0.12.10 and conduit_amqp 0.4.6. I was following the generator output. Upgrading to 0.6.3 has fixed it. Thanks! (And yes I went through the example before reporting the issue, thanks though)

from conduit.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.