Skip to content

Commit 09e28e2

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 3f21cf5 + 1f7b27a commit 09e28e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

conn/dialers.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,9 @@ func ConfigConnector(url string, config amqp.Config, opts ...ConnectionOption) C
9595
return DialConfig(url, config, opts...)
9696
}
9797
}
98+
99+
func NewConnector(url string, opts ...ConnectionOption) Connector {
100+
return func() (*Connection, error) {
101+
return Connect(url, opts...), nil
102+
}
103+
}

0 commit comments

Comments
 (0)