提交 34b7d179 编写于 作者: J Jared Parsons

Fixup style issues

上级 e42ea7d7
......@@ -195,7 +195,7 @@ public TValue GetOrMakeValue(TKey key)
public static ObjectPool<CachingIdentityFactory<TKey, TValue>> CreatePool(int size, Func<TKey, TValue> valueFactory)
{
var pool = new ObjectPool<CachingIdentityFactory<TKey, TValue>>(
pool => new CachingIdentityFactory<TKey, TValue>(size, valueFactory, pool),
pool => new CachingIdentityFactory<TKey, TValue>(size, valueFactory, pool),
Environment.ProcessorCount * 2);
return pool;
......
......@@ -56,7 +56,7 @@ public void Free()
public static ObjectPool<OrderPreservingMultiDictionary<K, V>> CreatePool()
{
var pool = new ObjectPool<OrderPreservingMultiDictionary<K, V>>(
pool => new OrderPreservingMultiDictionary<K, V>(pool),
pool => new OrderPreservingMultiDictionary<K, V>(pool),
16); // Size is a guess.
return pool;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册