Section 30. No compensation shall be allowed to an officer for the performance of any services required by sections twenty-three to twenty-nine, inclusive, but he shall be reimbursed by the commonwealth for his actual traveling expenses incurred in the performance of any duties therein required.