ucpr/mongo-streamer

View on GitHub

Showing 1 of 4 total issues

Function NewChangeStream has 5 return statements (exceeds 4 allowed).
Confirmed

func NewChangeStream(ctx context.Context, params ChangeStreamParams, opts ...ChangeStreamOption) (*ChangeStream, error) {
    chopts := &options.ChangeStreamOptions{}
    for _, opt := range opts {
        opt(&ChangeStreamOptions{chopts})
    }
Severity: Major
Found in internal/mongo/change_stream.go - About 35 mins to fix
    Severity
    Category
    Status
    Source
    Language