forked from cerc-io/ipld-eth-server
Update vendor directory and make necessary code changes
Fixes for new geth version
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Protocol Labs
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing instead.
|
||||
package notifications
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
core "github.com/libp2p/go-libp2p-core/routing"
|
||||
)
|
||||
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/QueryEventType instead.
|
||||
type QueryEventType = core.QueryEventType
|
||||
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/QueryEventBufferSize instead.
|
||||
// Warning: it's impossible to alias a var in go, so reads and writes to this variable may be inaccurate
|
||||
// or not have the intended effect.
|
||||
var QueryEventBufferSize = core.QueryEventBufferSize
|
||||
|
||||
const (
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/SendingQuery instead.
|
||||
SendingQuery = core.SendingQuery
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/PeerResponse instead.
|
||||
PeerResponse = core.PeerResponse
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/FinalPeer instead.
|
||||
FinalPeer = core.FinalPeer
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/QueryError instead.
|
||||
QueryError = core.QueryError
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/Provider instead.
|
||||
Provider = core.Provider
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/Value instead.
|
||||
Value = core.Value
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/AddingPeer instead.
|
||||
AddingPeer = core.AddingPeer
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/DialingPeer instead.
|
||||
DialingPeer = core.DialingPeer
|
||||
)
|
||||
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/QueryEvent instead.
|
||||
type QueryEvent = core.QueryEvent
|
||||
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/RegisterForQueryEvents instead.
|
||||
func RegisterForQueryEvents(ctx context.Context) (context.Context, <-chan *core.QueryEvent) {
|
||||
return core.RegisterForQueryEvents(ctx)
|
||||
}
|
||||
|
||||
// Deprecated: use github.com/libp2p/go-libp2p-core/routing/PublishQueryEvent instead.
|
||||
func PublishQueryEvent(ctx context.Context, ev *core.QueryEvent) {
|
||||
core.PublishQueryEvent(ctx, ev)
|
||||
}
|
||||
Reference in New Issue
Block a user