MisskeyAdapter, NostrAdapter: try to fix misskey client context timeout, fix type signatures
This commit is contained in:
parent
67ec0e1809
commit
aecfd97c96
2 changed files with 6 additions and 5 deletions
|
@ -89,8 +89,8 @@ func (self *MisskeyAdapter) poll() {
|
|||
|
||||
var latest *time.Time
|
||||
|
||||
notesService := self.mk.Notes()
|
||||
timelineService := notesService.Timeline()
|
||||
var notesService *n.Service
|
||||
var timelineService *tl.Service
|
||||
|
||||
for {
|
||||
select {
|
||||
|
@ -99,7 +99,8 @@ func (self *MisskeyAdapter) poll() {
|
|||
return
|
||||
}
|
||||
default:
|
||||
|
||||
notesService = self.mk.Notes()
|
||||
timelineService = notesService.Timeline()
|
||||
// TODO: we have to actually decode and pass our filter criteria
|
||||
|
||||
// probe for new notes
|
||||
|
@ -265,7 +266,7 @@ func (self *MisskeyAdapter) toAuthor(usr mkm.User) *Author {
|
|||
return &author
|
||||
}
|
||||
|
||||
func (self *MisskeyAdapter) Fetch(etype, ids []string) error {
|
||||
func (self *MisskeyAdapter) Fetch(etype string, ids []string) error {
|
||||
for _, id := range ids {
|
||||
switch etype {
|
||||
case "message":
|
||||
|
|
|
@ -79,7 +79,7 @@ func (self *NostrAdapter) Subscribe(filter string) []error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (self *NostrAdapter) Fetch(etype, ids []string) error {
|
||||
func (self *NostrAdapter) Fetch(etype string, ids []string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue