Skip to content

Commit

Permalink
update type
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy04 committed Mar 2, 2024
1 parent 15d8847 commit fe41e97
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions protocol/streaming/grpc/grpc_streaming_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

var _ types.GrpcStreamingManager = (*GrpcStreamingManagerImpl)(nil)

// GrpcStreamingManager is an implementation for managing gRPC streaming subscriptions.
// GrpcStreamingManagerImpl is an implementation for managing gRPC streaming subscriptions.
type GrpcStreamingManagerImpl struct {
}

Expand All @@ -30,9 +30,9 @@ func (sm *GrpcStreamingManagerImpl) Subscribe(
return nil, nil
}

// SendMessages groups messages by their clob pair ids and
// SendOrderbookUpdates groups updates by their clob pair ids and
// sends messages to the subscribers.
func (sm *GrpcStreamingManagerImpl) SendMessages(
msg *clobtypes.OffchainUpdateMessage,
func (sm *GrpcStreamingManagerImpl) SendOrderbookUpdates(
updates *clobtypes.OffchainUpdates,
) {
}
7 changes: 2 additions & 5 deletions protocol/streaming/grpc/noop_streaming_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

var _ types.GrpcStreamingManager = (*NoopGrpcStreamingManager)(nil)

// GrpcStreamingManager is an implementation for managing gRPC streaming subscriptions.
type NoopGrpcStreamingManager struct{}

func NewNoopGrpcStreamingManager() *NoopGrpcStreamingManager {
Expand All @@ -28,9 +27,7 @@ func (sm *NoopGrpcStreamingManager) Subscribe(
return nil, nil
}

// SendMessages groups messages by their clob pair ids and
// sends messages to the subscribers.
func (sm *NoopGrpcStreamingManager) SendMessages(
msg *clobtypes.OffchainUpdateMessage,
func (sm *NoopGrpcStreamingManager) SendOrderbookUpdates(
updates *clobtypes.OffchainUpdates,
) {
}
2 changes: 1 addition & 1 deletion protocol/streaming/grpc/types/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ type GrpcStreamingManager interface {
finished chan<- bool,
err error,
)
SendMessages(*clobtypes.OffchainUpdateMessage)
SendOrderbookUpdates(*clobtypes.OffchainUpdates)
}

0 comments on commit fe41e97

Please sign in to comment.