Skip to content

Commit

Permalink
update layer usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Cisphyx committed Jun 17, 2024
1 parent 2be62d0 commit 5e8217c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions synapse/lib/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3817,7 +3817,7 @@ def _editNodeEdgeDel(self, buid, form, edit, sode, meta):

async def getEdgeVerbs(self):

for lkey in self.layrslab.scanKeys(db=self.byverb):
for lkey in self.layrslab.scanKeys(db=self.byverb, nodup=True):
yield lkey.decode()

async def getEdges(self, verb=None):
Expand Down Expand Up @@ -4089,7 +4089,7 @@ async def iterNodeDataKeys(self, buid):
'''
Return a generator of all a buid's node data keys
'''
for lkey in self.dataslab.scanKeysByPref(buid, db=self.nodedata):
for lkey in self.dataslab.scanKeysByPref(buid, db=self.nodedata, nodup=True):
abrv = lkey[32:]
prop = self.getAbrvProp(abrv)
yield prop[0]
Expand Down Expand Up @@ -4118,12 +4118,12 @@ async def iterLayerAddPerms(self):
yield ('node', 'tag', 'add', *info[1].split('.'))

# nodedata
async for abrv in s_coro.pause(self.dataslab.scanKeys(db=self.dataname)):
async for abrv in s_coro.pause(self.dataslab.scanKeys(db=self.dataname, nodup=True)):
name, _ = self.getAbrvProp(abrv)
yield ('node', 'data', 'set', name)

# edges
async for verb in s_coro.pause(self.layrslab.scanKeys(db=self.byverb)):
async for verb in s_coro.pause(self.layrslab.scanKeys(db=self.byverb, nodup=True)):
yield ('node', 'edge', 'add', verb.decode())

# tags
Expand Down

0 comments on commit 5e8217c

Please sign in to comment.