mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
change another expire and remove a redundant one
This commit is contained in:
@@ -49,9 +49,6 @@ namespace OpenSim.Services.Connectors
|
||||
|
||||
private string m_ServerURI = String.Empty;
|
||||
|
||||
private ExpiringCache<ulong, GridRegion> m_regionCache =
|
||||
new ExpiringCache<ulong, GridRegion>();
|
||||
|
||||
public GridServicesConnector()
|
||||
{
|
||||
}
|
||||
@@ -279,11 +276,6 @@ namespace OpenSim.Services.Connectors
|
||||
public GridRegion GetRegionByPosition(UUID scopeID, int x, int y)
|
||||
{
|
||||
GridRegion rinfo = null;
|
||||
ulong regionHandle = Util.UIntsToLong((uint)x, (uint)y);
|
||||
|
||||
// this cache includes NULL regions
|
||||
if (m_regionCache.TryGetValue(regionHandle, out rinfo))
|
||||
return rinfo;
|
||||
|
||||
Dictionary<string, object> sendData = new Dictionary<string, object>();
|
||||
|
||||
@@ -325,8 +317,6 @@ namespace OpenSim.Services.Connectors
|
||||
else
|
||||
m_log.DebugFormat("[GRID CONNECTOR]: GetRegionByPosition received null reply");
|
||||
|
||||
m_regionCache.Add(regionHandle, rinfo, TimeSpan.FromSeconds(600));
|
||||
|
||||
return rinfo;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user