fix compile error of streaming project

explicit return type for implicit function