123
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
RakVhalate 2022-12-20 18:45:22 +05:00
parent cccd45caa7
commit ecc3a4d321
3 changed files with 4 additions and 6 deletions

View File

@ -25,7 +25,7 @@ namespace NeDvachAPI.BufferControllers
{ {
if (threadId < Threads.Length + 1 & threadId != 0) if (threadId < Threads.Length + 1 & threadId != 0)
{ {
;
return Threads[threadId - 1]; return Threads[threadId - 1];
} }

View File

@ -12,11 +12,11 @@ namespace NeDvachAPI.BufferControllers
APIThreadBuffer.WriteThreadPreviewsBuffer(posts); APIThreadBuffer.WriteThreadPreviewsBuffer(posts);
Console.WriteLine("Заполняю буфер оп-постами"); Console.WriteLine("Заполняю буфер оп-постами");
for (int threadId = 1; threadId <= 4; threadId++) for (int threadId = 1; threadId <= posts.Count; threadId++)
{ {
APIThreadBuffer.WriteThreadsBuffer(DBchat.PostsList(board, threadId)); APIThreadBuffer.WriteThreadsBuffer(DBchat.PostsList(board, threadId));
Console.WriteLine("Добавляю буферизую тред " + threadId);
} }
Console.WriteLine($@"Буферизую треды с {1} по {posts.Count}.");
return true; return true;
} }
} }

View File

@ -145,8 +145,6 @@ namespace NeDvachAPI.DBControllers
using (var conn = new NpgsqlConnection(connString)) using (var conn = new NpgsqlConnection(connString))
{ {
Console.Out.WriteLine("Opening connection");
conn.Open(); conn.Open();
int postNum = 14; int postNum = 14;