Formation of the current sheet in a coronal streamer