tickerInfo id
This commit is contained in:
		
							parent
							
								
									421d05a083
								
							
						
					
					
						commit
						6932c8fd89
					
				
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							@ -4,7 +4,7 @@ go 1.21
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
require (
 | 
					require (
 | 
				
			||||||
	github.com/bitly/go-simplejson v0.5.0
 | 
						github.com/bitly/go-simplejson v0.5.0
 | 
				
			||||||
	github.com/phyer/core v0.1.65
 | 
						github.com/phyer/core v0.1.66
 | 
				
			||||||
	github.com/phyer/v5sdkgo v0.1.4
 | 
						github.com/phyer/v5sdkgo v0.1.4
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										4
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								go.sum
									
									
									
									
									
								
							@ -45,8 +45,8 @@ github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7J
 | 
				
			|||||||
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
 | 
					github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
 | 
				
			||||||
github.com/onsi/gomega v1.16.0 h1:6gjqkI8iiRHMvdccRJM8rVKjCWk6ZIm6FTm3ddIe4/c=
 | 
					github.com/onsi/gomega v1.16.0 h1:6gjqkI8iiRHMvdccRJM8rVKjCWk6ZIm6FTm3ddIe4/c=
 | 
				
			||||||
github.com/onsi/gomega v1.16.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
 | 
					github.com/onsi/gomega v1.16.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
 | 
				
			||||||
github.com/phyer/core v0.1.65 h1:QWYqfyP4B1JrgC+MnKierIXJUWA/BVySZ8/+B+2gKoI=
 | 
					github.com/phyer/core v0.1.66 h1:6jU9MS7K9rY2GbFdCIJQK/vOukqtRfFqG3n46snh3/Q=
 | 
				
			||||||
github.com/phyer/core v0.1.65/go.mod h1:XZdniJiiZPzOU8+QHPFRQWdvJa6m5Ilj5VClWWI0OQg=
 | 
					github.com/phyer/core v0.1.66/go.mod h1:XZdniJiiZPzOU8+QHPFRQWdvJa6m5Ilj5VClWWI0OQg=
 | 
				
			||||||
github.com/phyer/v5sdkgo v0.1.4 h1:mAxxjPJVTYGuGDarqOcFGkzj5AgqbbzJGsnYmmsbapU=
 | 
					github.com/phyer/v5sdkgo v0.1.4 h1:mAxxjPJVTYGuGDarqOcFGkzj5AgqbbzJGsnYmmsbapU=
 | 
				
			||||||
github.com/phyer/v5sdkgo v0.1.4/go.mod h1:QCMnQFQNizOvFRPKytv50fOg/MoxS44IFcQicc4NxOg=
 | 
					github.com/phyer/v5sdkgo v0.1.4/go.mod h1:QCMnQFQNizOvFRPKytv50fOg/MoxS44IFcQicc4NxOg=
 | 
				
			||||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
 | 
					github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										6
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								main.go
									
									
									
									
									
								
							@ -60,7 +60,7 @@ func RestTicker(cr *core.Core, dura time.Duration) {
 | 
				
			|||||||
			return
 | 
								return
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		ti := tir.Convert()
 | 
							ti := tir.Convert()
 | 
				
			||||||
		isUsdt := strings.Contains(ti.InstId, "-USDT")
 | 
							isUsdt := strings.Contains(ti.InstID, "-USDT")
 | 
				
			||||||
		if !isUsdt {
 | 
							if !isUsdt {
 | 
				
			||||||
			continue
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
@ -74,10 +74,10 @@ func RestTicker(cr *core.Core, dura time.Duration) {
 | 
				
			|||||||
			suffix = "-demoEnv"
 | 
								suffix = "-demoEnv"
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		for _, v := range allTicker {
 | 
							for _, v := range allTicker {
 | 
				
			||||||
			if v == ti.InstId {
 | 
								if v == ti.InstID {
 | 
				
			||||||
				wg := core.WriteLog{
 | 
									wg := core.WriteLog{
 | 
				
			||||||
					Content: ab,
 | 
										Content: ab,
 | 
				
			||||||
					Tag:     "sardine.log.ticker." + tir.InstId,
 | 
										Tag:     "sardine.log.ticker." + tir.InstID,
 | 
				
			||||||
					Id:      ti.Id,
 | 
										Id:      ti.Id,
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				cr.WriteLogChan <- &wg
 | 
									cr.WriteLogChan <- &wg
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user