Skip to content

Commit

Permalink
Update README with generics support
Browse files Browse the repository at this point in the history
  • Loading branch information
gmichelo committed Aug 17, 2022
1 parent da19d0d commit 7192875
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ import (
"github.com/bigmikes/drr"
)

func sourceRequests(s string) <-chan interface{} {
inChan := make(chan interface{}, 5)
func sourceRequests(s string) <-chan string {
inChan := make(chan string, 5)
go func() {
defer close(inChan)
for i := 0; i < 5; i++ {
Expand All @@ -63,7 +63,7 @@ func sourceRequests(s string) <-chan interface{} {

func main() {
// Set output channel and create DRR scheduler.
outputChan := make(chan interface{}, 5)
outputChan := make(chan string, 5)
drr, err := drr.NewDRR(outputChan)
if err != nil {
panic(err)
Expand Down

0 comments on commit 7192875

Please sign in to comment.