Skip to content

Commit 6a07a78

Browse files
committed
minor changes
1 parent 85c216f commit 6a07a78

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

OutdoorzSocial.Business/Kafka/KafkaConsumerService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public KafkaConsumerService(IServiceScopeFactory scopeFactory)
2121
var cfg = new ConsumerConfig
2222
{
2323
ClientId = "outdoorz-social-client",
24-
BootstrapServers = "kafka:9092",
24+
BootstrapServers = "localhost:29092",
2525
GroupId = "outdoorz-social-group",
2626
AutoOffsetReset = AutoOffsetReset.Earliest
2727
};

OutdoorzSocial.Business/Kafka/KafkaProducerService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public KafkaProducerService(IServiceScopeFactory scopeFactory)
1919

2020
var config = new ProducerConfig
2121
{
22-
BootstrapServers = "kafka:9092",
22+
BootstrapServers = "localhost:29092",
2323
Acks = Acks.All
2424
};
2525
_producer = new ProducerBuilder<Null, string>(config).Build();

OutdoorzSocial.WebApi/Controllers/PostController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public async Task<IActionResult> GetPostInfo([FromQuery] int postId)
4949

5050
// When it comes to create a post, the transaction broker must have uploaded the files already to the media service
5151
[Authorize]
52-
[ServiceFilter(typeof(TokenCheck))] //TO TEST
52+
[ServiceFilter(typeof(TokenCheck))]
5353
[HttpPost("create-post")]
5454
public async Task<IActionResult> CreatePost([FromBody] CreatePostDto createPostDto)
5555
{

OutdoorzSocial.WebApi/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
var key = jwt["Key"];
2727

2828
builder.Configuration["ConnectionStrings:DefaultConnection"] =
29-
$"Server=db-social,1433;Database=OutdoorzSocial;User Id=sa;" +
29+
$"Server=localhost,11433;Database=OutdoorzSocial;User Id=sa;" +
3030
$"Password={Environment.GetEnvironmentVariable("DB_PASSWORD")};" +
3131
"Encrypt=False;MultipleActiveResultSets=True;";
3232

0 commit comments

Comments
 (0)