All bridges carrying railroad traffic shall be inspected as set forth in this act. This section and section 331 through 335 shall apply until federal law is enacted requiring the periodic inspection of bridges carrying railroad traffic.