Skip to content

Commit

Permalink
Revert can_skip to private method
Browse files Browse the repository at this point in the history
  • Loading branch information
sheridana authored and pattonw committed Oct 24, 2023
1 parent 29497bb commit f0c62af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gunpowder/nodes/batch_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def autoskip_enabled(self):
return self._autoskip_enabled

def provide(self, request):
skip = self._can_skip(request) or self.skip_node(request)
skip = self.__can_skip(request) or self.skip_node(request)

timing_prepare = Timing(self, "prepare")
timing_prepare.start()
Expand Down Expand Up @@ -190,7 +190,7 @@ def provide(self, request):

return batch

def _can_skip(self, request):
def __can_skip(self, request):
"""Check if this filter needs to be run for the given request."""

if not self.autoskip_enabled:
Expand Down

0 comments on commit f0c62af

Please sign in to comment.