This function has no logic and doesn't save any characters from just adding this option manually:

    streaming_window_duration_opts(duration)

    [OptionSet("window-duration", [duration])]

Maybe just remove it?