Skip to content

Commit

Permalink
Merge pull request #3 from creachadair/jrpc2-update
Browse files Browse the repository at this point in the history
Update the jrpc2 module to its new location.
  • Loading branch information
xiphon committed Jun 19, 2019
2 parents c91cd5a + 017ca15 commit 2d337ba
Show file tree
Hide file tree
Showing 86 changed files with 2,288 additions and 5,114 deletions.
110 changes: 97 additions & 13 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions network/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import (
"net"
"net/http"

"bitbucket.org/creachadair/jrpc2"
"bitbucket.org/creachadair/jrpc2/channel"
"bitbucket.org/creachadair/jrpc2/server"
"github.com/creachadair/jrpc2"
"github.com/creachadair/jrpc2/channel"
"github.com/creachadair/jrpc2/handler"
"github.com/creachadair/jrpc2/server"
"github.com/modern-go/concurrent"
)

Expand Down Expand Up @@ -56,9 +57,9 @@ func WithRpcServer(hostPort string, handlers map[string]interface{}, callback fu
rpcServer := concurrent.NewUnboundedExecutor()
rpcServer.Go(func(ctx context.Context) {

assigner := jrpc2.MapAssigner{}
assigner := handler.Map{}
for each := range handlers {
assigner[each] = jrpc2.NewHandler(handlers[each])
assigner[each] = handler.New(handlers[each])
}

headers := http.Header{}
Expand Down
8 changes: 0 additions & 8 deletions vendor/bitbucket.org/creachadair/jrpc2/README.md

This file was deleted.

Loading

0 comments on commit 2d337ba

Please sign in to comment.