This commit is contained in:
parent
cccd45caa7
commit
ecc3a4d321
@ -25,7 +25,7 @@ namespace NeDvachAPI.BufferControllers
|
||||
{
|
||||
if (threadId < Threads.Length + 1 & threadId != 0)
|
||||
{
|
||||
;
|
||||
|
||||
return Threads[threadId - 1];
|
||||
|
||||
}
|
||||
|
@ -12,11 +12,11 @@ namespace NeDvachAPI.BufferControllers
|
||||
APIThreadBuffer.WriteThreadPreviewsBuffer(posts);
|
||||
Console.WriteLine("Заполняю буфер оп-постами");
|
||||
|
||||
for (int threadId = 1; threadId <= 4; threadId++)
|
||||
for (int threadId = 1; threadId <= posts.Count; threadId++)
|
||||
{
|
||||
APIThreadBuffer.WriteThreadsBuffer(DBchat.PostsList(board, threadId));
|
||||
Console.WriteLine("Добавляю буферизую тред " + threadId);
|
||||
APIThreadBuffer.WriteThreadsBuffer(DBchat.PostsList(board, threadId));
|
||||
}
|
||||
Console.WriteLine($@"Буферизую треды с {1} по {posts.Count}.");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -145,8 +145,6 @@ namespace NeDvachAPI.DBControllers
|
||||
|
||||
using (var conn = new NpgsqlConnection(connString))
|
||||
{
|
||||
|
||||
Console.Out.WriteLine("Opening connection");
|
||||
conn.Open();
|
||||
int postNum = 14;
|
||||
|
||||
|
Reference in New Issue
Block a user