async def stor(self, sops): ''' Execute a series of storage operations. ''' for oper in sops: func = self._stor_funcs.get(oper[0]) if func is None: raise s_exc.NoSuchStor(name=oper[0]) await func(oper)
async def stor(self, sops, splices=None): ''' Execute a series of storage operations. ''' for oper in sops: func = self._stor_funcs.get(oper[0]) if func is None: # pragma: no cover raise s_exc.NoSuchStor(name=oper[0]) await func(oper) if splices: await self._storFireSplices(splices)
async def stor(self, sops, splices=None): ''' Execute a series of storage operations. Overrides implementation in layer.py to avoid unnecessary async calls. ''' for oper in sops: func = self._stor_funcs.get(oper[0]) if func is None: # pragma: no cover raise s_exc.NoSuchStor(name=oper[0]) func(oper) if splices: await self._storFireSplices(splices)