File tree Expand file tree Collapse file tree 3 files changed +390
-314
lines changed Expand file tree Collapse file tree 3 files changed +390
-314
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ const (
3636 // connection to the server needs to be alive before we consider it a
3737 // successful connection.
3838 defaultMinAliveConnTime = time .Minute
39+
40+ // current_version is the current version of the notification listener.
41+ current_version = swapserverrpc .SubscribeNotificationsRequest_V1
3942)
4043
4144// Client is the interface that the notification manager needs to implement in
@@ -260,7 +263,9 @@ func (m *Manager) subscribeNotifications(ctx context.Context) error {
260263 defer cancel ()
261264
262265 notifStream , err := m .cfg .Client .SubscribeNotifications (
263- callCtx , & swapserverrpc.SubscribeNotificationsRequest {},
266+ callCtx , & swapserverrpc.SubscribeNotificationsRequest {
267+ Version : current_version ,
268+ },
264269 )
265270 if err != nil {
266271 return err
You can’t perform that action at this time.
0 commit comments