Skip to content

Commit

Permalink
Prep 1.2.0 release (#46)
Browse files Browse the repository at this point in the history
* 1.2.0 Release: Update mix.exs and README.md

* README.md: Remove non-existent NSQ.Producer.close method

* README.md: Remove outdated travis-ci badge

* README: Remove incorrect nsqds with port 4151
  • Loading branch information
chen-anders committed Jan 1, 2024
1 parent a3e27b7 commit b6ffb1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# elixir_nsq

[![Build Status](https://travis-ci.org/wistia/elixir_nsq.svg?branch=master)](https://travis-ci.org/wistia/elixir_nsq)

`elixir_nsq` is a client library for NSQ. Use it in your Elixir or Erlang
applications to handle messages asynchronously. This library seeks to be
complete, well-tested, and easy to use.
Expand All @@ -16,7 +14,7 @@ To use this, you will need to have [NSQ](http://nsq.io/).

```elixir
{:ok, producer} = NSQ.Producer.Supervisor.start_link("my-topic", %NSQ.Config{
nsqds: ["127.0.0.1:4150", "127.0.0.1:4151"]
nsqds: ["127.0.0.1:4150"]
})

# publish to the default topic "my-topic"
Expand All @@ -26,8 +24,6 @@ NSQ.Producer.mpub(producer, ["one", "two", "three"])
# specify a topic
NSQ.Producer.pub(producer, "different-topic", "another message")
NSQ.Producer.mpub(producer, "different-topic", ["four", "five", "six"])

NSQ.Producer.close(producer)
```

## Quick Start
Expand All @@ -36,7 +32,7 @@ NSQ.Producer.close(producer)

```elixir
defp deps do
[{:elixir_nsq, "~> 1.1.0"}]
[{:elixir_nsq, "~> 1.2.0"}]
end

defp applications do
Expand Down Expand Up @@ -99,7 +95,7 @@ If you're not using nsqlookupd, you can specify nsqds directly:

```elixir
{:ok, consumer} = NSQ.Consumer.Supervisor.start_link("my-topic", "my-channel", %NSQ.Config{
nsqds: ["127.0.0.1:4150", "127.0.0.1:4151"],
nsqds: ["127.0.0.1:4150"],
message_handler: fn(body, msg) ->
:ok
end
Expand Down Expand Up @@ -137,7 +133,7 @@ end

def setup_consumer do
{:ok, consumer} = NSQ.Consumer.Supervisor.start_link("my-topic", "my-channel", %NSQ.Config{
nsqds: ["127.0.0.1:4150", "127.0.0.1:4151"],
nsqds: ["127.0.0.1:4150"],
message_handler: fn(body, msg) ->
:ok
end
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ defmodule ElixirNsq.Mixfile do
def project do
[
app: :elixir_nsq,
version: "1.1.0",
elixir: "~> 1.1",
version: "1.2.0",
elixir: "~> 1.12",
description: description(),
package: package(),
build_embedded: Mix.env() == :prod,
Expand Down

0 comments on commit b6ffb1d

Please sign in to comment.