Skip to content

Commit d02ce2d

Browse files
cleanup
Signed-off-by: Said Altury <Said.Altury@ibm.com>
1 parent e18fd4c commit d02ce2d

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

platform/fabricx/core/finality/listenermanager.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ func newNotifi(ctx context.Context, cfg config.ConfigService) (*notificationList
8282
}
8383

8484
func GetListenerManager(ctx context.Context, sp services.Provider, network, channel string) (ListenerManager, error) {
85-
logger.Infof("@@@@@@@@@@ here at GetListenerManager")
8685
lmp, err := sp.GetService(reflect.TypeOf((*ListenerManagerProvider)(nil)))
8786
if err != nil {
8887
return nil, errors.Wrapf(err, "could not find provider")

platform/fabricx/core/finality/nlm.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,13 @@ type notificationListenerManager struct {
3535

3636
func (n *notificationListenerManager) Listen(ctx context.Context) error {
3737
g, gCtx := errgroup.WithContext(n.notifyStream.Context())
38-
logger.Infof("@@@@@@@@@@ here at Listen")
3938
// spawn stream receiver
4039
g.Go(func() error {
4140
for {
4241
res, err := n.notifyStream.Recv()
4342
if err != nil {
4443
return err
4544
}
46-
logger.Infof("[nlm.Listen] Received new notification: %+v", res)
4745
select {
4846
case <-gCtx.Done():
4947
return gCtx.Err()
@@ -79,7 +77,6 @@ func (n *notificationListenerManager) Listen(ctx context.Context) error {
7977
}
8078

8179
res := parseResponse(resp)
82-
logger.Infof("[nlm.Listen] Parsed notification result: %+v", res)
8380

8481
n.lock.Lock()
8582
for txID, v := range res {

platform/fabricx/core/vault/queryservice/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (s *RemoteQueryService) query(m map[driver.Namespace][]driver.PKey) (map[dr
7676
return nil, err
7777
}
7878

79-
ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
79+
ctx, cancel := context.WithTimeout(context.Background(), s.config.QueryTimeout)
8080
defer cancel()
8181

8282
now := time.Now()

0 commit comments

Comments
 (0)