Skip to content

Commit

Permalink
Remove public pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrsantos committed Dec 15, 2022
1 parent c3ef435 commit bd8ec0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libp2p/switch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,17 @@ type
inUse: bool


method setup*(self: Service, switch: Switch): Future[bool] {.base, async, gcsafe, public.} =
method setup*(self: Service, switch: Switch): Future[bool] {.base, async, gcsafe.} =
if self.inUse:
warn "service setup has already been called"
return false
self.inUse = true
return true

method run*(self: Service, switch: Switch) {.base, async, gcsafe, public.} =
method run*(self: Service, switch: Switch) {.base, async, gcsafe.} =
doAssert(false, "Not implemented!")

method stop*(self: Service, switch: Switch): Future[bool] {.base, async, gcsafe, public.} =
method stop*(self: Service, switch: Switch): Future[bool] {.base, async, gcsafe.} =
if not self.inUse:
warn "service is already stopped"
return false
Expand Down

0 comments on commit bd8ec0b

Please sign in to comment.