Skip to content

Commit

Permalink
Merge pull request #3 from GoCarnival/develop
Browse files Browse the repository at this point in the history
🚀 Deploy stuff.
  • Loading branch information
Ivan97 authored May 7, 2024
2 parents 66f11e8 + a4a7410 commit 554e1bc
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 26 deletions.
2 changes: 1 addition & 1 deletion iter/iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"runtime"
"sync/atomic"

"github.com/GoCarnivalConc/conc"
"github.com/GoCarnival/conc"
)

// defaultMaxGoroutines returns the default maximum number of
Expand Down
2 changes: 1 addition & 1 deletion iter/iter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync/atomic"
"testing"

"github.com/GoCarnivalConc/conc/iter"
"github.com/GoCarnival/conc/iter"

"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion iter/map.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package iter

import (
"github.com/GoCarnivalConc/conc/errors"
"github.com/GoCarnival/conc/errors"
"sync"
)

Expand Down
2 changes: 1 addition & 1 deletion iter/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/GoCarnivalConc/conc/iter"
"github.com/GoCarnival/conc/iter"

"github.com/stretchr/testify/require"
)
Expand Down
8 changes: 6 additions & 2 deletions panics/panics.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ func (p *Catcher) Repanic() {
// Recovered returns the value of the first panic caught by Try, or nil if
// no calls to Try panicked.
func (p *Catcher) Recovered() *Recovered {
recovered := p.recovered.Load().(Recovered)
return &recovered
val := p.recovered.Load()
if val == nil {
return nil
}
recovered := val.(*Recovered)
return recovered
}

// NewRecovered creates a panics.Recovered from a panic value and a collected
Expand Down
10 changes: 5 additions & 5 deletions panics/panics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"
"testing"

"github.com/GoCarnivalConc/conc/panics"
"github.com/GoCarnival/conc/panics"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -50,11 +50,11 @@ func ExampleCatcher_callers() {
}
}
// Output:
// github.com/GoCarnivalConc/conc/panics.(*Catcher).tryRecover
// github.com/GoCarnival/conc/panics.(*Catcher).tryRecover
// runtime.gopanic
// github.com/GoCarnivalConc/conc/panics_test.ExampleCatcher_callers.func1
// github.com/GoCarnivalConc/conc/panics.(*Catcher).Try
// github.com/GoCarnivalConc/conc/panics_test.ExampleCatcher_callers
// github.com/GoCarnival/conc/panics_test.ExampleCatcher_callers.func1
// github.com/GoCarnival/conc/panics.(*Catcher).Try
// github.com/GoCarnival/conc/panics_test.ExampleCatcher_callers
// testing.runExample
// testing.runExamples
// testing.(*M).Run
Expand Down
2 changes: 1 addition & 1 deletion panics/try_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"testing"

"github.com/GoCarnivalConc/conc/panics"
"github.com/GoCarnival/conc/panics"

"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pool/context_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/GoCarnivalConc/conc/pool"
"github.com/GoCarnival/conc/pool"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion pool/error_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package pool

import (
"context"
"github.com/GoCarnivalConc/conc/errors"
"github.com/GoCarnival/conc/errors"
"sync"
)

Expand Down
2 changes: 1 addition & 1 deletion pool/error_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/GoCarnivalConc/conc/pool"
"github.com/GoCarnival/conc/pool"

"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"sync"

"github.com/GoCarnivalConc/conc"
"github.com/GoCarnival/conc"
)

// New creates a new Pool.
Expand Down
2 changes: 1 addition & 1 deletion pool/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/GoCarnivalConc/conc/pool"
"github.com/GoCarnival/conc/pool"

"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pool/result_context_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/GoCarnivalConc/conc/pool"
"github.com/GoCarnival/conc/pool"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion pool/result_error_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/GoCarnivalConc/conc/pool"
"github.com/GoCarnival/conc/pool"

"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pool/result_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/GoCarnivalConc/conc/pool"
"github.com/GoCarnival/conc/pool"

"github.com/stretchr/testify/require"
)
Expand Down
6 changes: 3 additions & 3 deletions stream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package stream
import (
"sync"

"github.com/GoCarnivalConc/conc"
"github.com/GoCarnivalConc/conc/panics"
"github.com/GoCarnivalConc/conc/pool"
"github.com/GoCarnival/conc"
"github.com/GoCarnival/conc/panics"
"github.com/GoCarnival/conc/pool"
)

// New creates a new Stream with default settings.
Expand Down
2 changes: 1 addition & 1 deletion stream/stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/GoCarnivalConc/conc/stream"
"github.com/GoCarnival/conc/stream"

"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion waitgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package conc
import (
"sync"

"github.com/GoCarnivalConc/conc/panics"
"github.com/GoCarnival/conc/panics"
)

// NewWaitGroup creates a new WaitGroup.
Expand Down
2 changes: 1 addition & 1 deletion waitgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync/atomic"
"testing"

"github.com/GoCarnivalConc/conc"
"github.com/GoCarnival/conc"

"github.com/stretchr/testify/require"
)
Expand Down

0 comments on commit 554e1bc

Please sign in to comment.