Make DataStore internal and default it to an empty cache.

This commit is contained in:
RogueException
2016-07-20 18:25:03 -03:00
parent ba370aa865
commit 9423ec14c5
2 changed files with 3 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ using System.Linq;
namespace Discord
{
public class DataStore
internal class DataStore
{
private const int CollectionConcurrencyLevel = 1; //WebSocket updater/event handler. //TODO: Needs profiling, increase to 2?
private const double AverageChannelsPerGuild = 10.22; //Source: Googie2149

View File

@@ -73,6 +73,8 @@ namespace Discord
LargeThreshold = config.LargeThreshold;
AudioMode = config.AudioMode;
WebSocketProvider = config.WebSocketProvider;
DataStore = new DataStore(0, 0);
_nextAudioId = 1;
_gatewayLogger = LogManager.CreateLogger("Gateway");