X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FTak.git;a=blobdiff_plain;f=lib%2FTak%2FRole%2FService.pm;h=5bcf7cace44e42d39f673207327a0f8ddcd08c91;hp=3ee3d7f124554365c47353fb8391990d473cf8cd;hb=542ab4162ceb2ed5deadae8e8440af2046e45674;hpb=fe725d6e99834f26f20ce3f78eda9591c0d4a7d1 diff --git a/lib/Tak/Role/Service.pm b/lib/Tak/Role/Service.pm index 3ee3d7f..5bcf7ca 100644 --- a/lib/Tak/Role/Service.pm +++ b/lib/Tak/Role/Service.pm @@ -33,4 +33,9 @@ sub receive { } } +# This assumes that by default either services are not stateful +# or do want to have persistent state. It's notably overriden by Router. + +sub clone_or_self { $_[0] } + 1;