chore: stabilize lint and verify builds
This commit is contained in:
@@ -78,7 +78,7 @@ func ProvideChannel(opts ...opt.Option) error {
|
||||
publishers[Redis] = redisPublisher
|
||||
}
|
||||
|
||||
if config.Sql == nil {
|
||||
if config.SQL == nil {
|
||||
var db *sqlDB.DB
|
||||
sqlPublisher, err := sql.NewPublisher(db, sql.PublisherConfig{
|
||||
SchemaAdapter: sql.DefaultPostgreSQLSchema{},
|
||||
@@ -87,16 +87,16 @@ func ProvideChannel(opts ...opt.Option) error {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
publishers[Sql] = sqlPublisher
|
||||
publishers[SQL] = sqlPublisher
|
||||
|
||||
sqlSubscriber, err := sql.NewSubscriber(db, sql.SubscriberConfig{
|
||||
SchemaAdapter: sql.DefaultPostgreSQLSchema{},
|
||||
ConsumerGroup: config.Sql.ConsumerGroup,
|
||||
ConsumerGroup: config.SQL.ConsumerGroup,
|
||||
}, logger)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
subscribers[Sql] = sqlSubscriber
|
||||
subscribers[SQL] = sqlSubscriber
|
||||
}
|
||||
|
||||
router, err := message.NewRouter(message.RouterConfig{}, logger)
|
||||
|
||||
Reference in New Issue
Block a user